@graphcommerce/graphql-codegen-near-operation-file 3.0.4 → 3.0.7

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,87 +1,84 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1341](https://github.com/graphcommerce-org/graphcommerce/pull/1341) [`2e29c5852`](https://github.com/graphcommerce-org/graphcommerce/commit/2e29c585247d356e3027be92beb7815f2070c855) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
8
+
9
+ ## 3.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1326](https://github.com/graphcommerce-org/graphcommerce/pull/1326) [`df0b3e7d5`](https://github.com/graphcommerce-org/graphcommerce/commit/df0b3e7d5f5fee963731a999cb3a8891580cb6fe) Thanks [@paales](https://github.com/paales)! - Latest version of GraphQL Mesh is broken, reverting to older version
14
+
15
+ ## 3.0.5
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
20
+
21
+ * [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
22
+
3
23
  ## 3.0.4
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
8
- [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)
9
- Thanks [@paales](https://github.com/paales)! - upgraded dependencies
27
+ - [#1285](https://github.com/ho-nl/m2-pwa/pull/1285) [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017) Thanks [@paales](https://github.com/paales)! - upgraded dependencies
10
28
 
11
29
  ## 3.0.3
12
30
 
13
31
  ### Patch Changes
14
32
 
15
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
16
- Thanks [@paales](https://github.com/paales)! - made packages public
33
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
17
34
 
18
35
  ## 3.0.2
19
36
 
20
37
  ### Patch Changes
21
38
 
22
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
23
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
24
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
25
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
26
- duplicate packages in the node_modules folders.
39
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
27
40
 
28
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
29
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
30
- Thanks [@paales](https://github.com/paales)! - Upgraded to
31
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
32
- implementing
33
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
34
- soon.
41
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
35
42
 
36
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
37
- frontend to be able to revalidate pages manually.
43
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
38
44
 
39
45
  ## 3.0.1
40
46
 
41
47
  ### Patch Changes
42
48
 
43
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
44
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
45
- so that the packages link to back to the website and repository
49
+ - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
46
50
 
47
51
  ## 3.0.0
48
52
 
49
53
  ### Major Changes
50
54
 
51
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
52
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
53
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
55
+ - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
54
56
 
55
- All notable changes to this project will be documented in this file. See
56
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
57
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
57
58
 
58
59
  ## [2.103.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.103.5...@graphcommerce/graphql-codegen-near-operation-file@2.103.6) (2021-10-18)
59
60
 
60
61
  ### Bug Fixes
61
62
 
62
- - graphql-mesh missing inmemory lru
63
- ([6c71c25](https://github.com/ho-nl/m2-pwa/commit/6c71c256911072ace19037616e0ce2ab478bf070))
63
+ - graphql-mesh missing inmemory lru ([6c71c25](https://github.com/ho-nl/m2-pwa/commit/6c71c256911072ace19037616e0ce2ab478bf070))
64
64
 
65
65
  ## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.103.0...@graphcommerce/graphql-codegen-near-operation-file@2.103.1) (2021-09-28)
66
66
 
67
67
  ### Bug Fixes
68
68
 
69
- - do not build on install
70
- ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
69
+ - do not build on install ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
71
70
 
72
71
  # [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.102.3...@graphcommerce/graphql-codegen-near-operation-file@2.103.0) (2021-09-28)
73
72
 
74
73
  ### Features
75
74
 
76
- - add postinstall commands to run properly on deploy
77
- ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
75
+ - add postinstall commands to run properly on deploy ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
78
76
 
79
77
  ## [2.102.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.102.2...@graphcommerce/graphql-codegen-near-operation-file@2.102.3) (2021-09-27)
80
78
 
81
79
  ### Bug Fixes
82
80
 
83
- - build packages before releasing
84
- ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
81
+ - build packages before releasing ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
85
82
 
86
83
  ## [2.102.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.102.0...@graphcommerce/graphql-codegen-near-operation-file@2.102.1) (2021-09-27)
87
84
 
@@ -91,40 +88,26 @@ All notable changes to this project will be documented in this file. See
91
88
 
92
89
  ### Bug Fixes
93
90
 
94
- - ignore md files from triggering version updates
95
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
96
- - make sure graphql imports import Type correctly
97
- ([bc7cce0](https://github.com/ho-nl/m2-pwa/commit/bc7cce0e5013f46acccc316bcb7b90394106b8d2))
91
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
92
+ - make sure graphql imports import Type correctly ([bc7cce0](https://github.com/ho-nl/m2-pwa/commit/bc7cce0e5013f46acccc316bcb7b90394106b8d2))
98
93
 
99
94
  ### Features
100
95
 
101
- - added near-operation-file graphql codegen structure
102
- ([e25bdd1](https://github.com/ho-nl/m2-pwa/commit/e25bdd130ac41325619a7d0648e3cb68f2380d32))
103
- - allow for resolving fragments from directories other than the current target
104
- ([26c155b](https://github.com/ho-nl/m2-pwa/commit/26c155b6ff31958ff61cc800db6dc359d7d6ce99))
105
- - **graphql-codegen-near-operation-file:** do not export fragment documents
106
- ([f0f7091](https://github.com/ho-nl/m2-pwa/commit/f0f70911641b368834a12251b48aac733becf3b4))
107
- - **graphql-codegen:** new [@injectable](https://github.com/injectable) and
108
- [@inject](https://github.com/inject)(into: [“FragmentName”]) directives
109
- ([f80c96c](https://github.com/ho-nl/m2-pwa/commit/f80c96ce04f83023501fc1f25e7f466810092233))
110
- - **next-config:** introduced package to streamline the setup of new examples
111
- ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
112
- - **playwright:** added new playwright package to enable browser testing
113
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
114
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
115
- [@reachdigital](https://github.com/reachdigital)
116
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
117
- - upgrade to node 14
118
- ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
96
+ - added near-operation-file graphql codegen structure ([e25bdd1](https://github.com/ho-nl/m2-pwa/commit/e25bdd130ac41325619a7d0648e3cb68f2380d32))
97
+ - allow for resolving fragments from directories other than the current target ([26c155b](https://github.com/ho-nl/m2-pwa/commit/26c155b6ff31958ff61cc800db6dc359d7d6ce99))
98
+ - **graphql-codegen-near-operation-file:** do not export fragment documents ([f0f7091](https://github.com/ho-nl/m2-pwa/commit/f0f70911641b368834a12251b48aac733becf3b4))
99
+ - **graphql-codegen:** new [@injectable](https://github.com/injectable) and [@inject](https://github.com/inject)(into: [“FragmentName”]) directives ([f80c96c](https://github.com/ho-nl/m2-pwa/commit/f80c96ce04f83023501fc1f25e7f466810092233))
100
+ - **next-config:** introduced package to streamline the setup of new examples ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
101
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
102
+ - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
103
+ - upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
119
104
 
120
105
  # [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphql-codegen-near-operation-file@2.100.10...@graphcommerce/graphql-codegen-near-operation-file@2.101.0) (2021-07-26)
121
106
 
122
107
  ### Bug Fixes
123
108
 
124
- - ignore md files from triggering version updates
125
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
109
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
126
110
 
127
111
  ### Features
128
112
 
129
- - **playwright:** added new playwright package to enable browser testing
130
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
113
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -29,6 +33,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
29
33
  };
30
34
  Object.defineProperty(exports, "__esModule", { value: true });
31
35
  exports.resolveDocumentImports = void 0;
36
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
32
37
  /* eslint-disable import/no-cycle */
33
38
  var path_1 = require("path");
34
39
  var plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
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": "3.0.4",
5
+ "version": "3.0.7",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.js",
8
8
  "engines": {
@@ -25,17 +25,20 @@
25
25
  }
26
26
  },
27
27
  "devDependencies": {
28
- "@graphcommerce/eslint-config-pwa": "^4.0.4",
29
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
28
+ "@graphcommerce/eslint-config-pwa": "^4.1.1",
29
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
30
30
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
31
- "@playwright/test": "^1.19.1"
31
+ "@playwright/test": "^1.19.2"
32
32
  },
33
33
  "dependencies": {
34
- "@graphql-codegen/add": "^3.1.1",
35
- "@graphql-codegen/plugin-helpers": "^2.4.2",
36
- "@graphql-codegen/visitor-plugin-common": "^2.7.1",
34
+ "@graphql-codegen/add": "3.1.1",
35
+ "@graphql-codegen/plugin-helpers": "2.4.2",
36
+ "@graphql-codegen/visitor-plugin-common": "2.7.4",
37
37
  "@types/parse-filepath": "^1.0.0",
38
38
  "graphql": "^16.3.0",
39
39
  "parse-filepath": "^1.0.2"
40
+ },
41
+ "peerDependencies": {
42
+ "@graphql-tools/utils": "^8.6.2"
40
43
  }
41
44
  }
@@ -36,9 +36,9 @@ export type FragmentRegistry = {
36
36
  * Used by `buildFragmentResolver` to build a mapping of fragmentNames to paths, importNames, and
37
37
  * other useful info
38
38
  */
39
- export function buildFragmentRegistry(
39
+ export function buildFragmentRegistry<T>(
40
40
  { generateFilePath }: DocumentImportResolverOptions,
41
- { documents, config }: Types.PresetFnArgs<{}>,
41
+ { documents, config }: Types.PresetFnArgs<T>,
42
42
  schemaObject: GraphQLSchema,
43
43
  ): FragmentRegistry {
44
44
  const baseVisitor = new BaseVisitor<RawConfig, NearOperationFileParsedConfig>(config, {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
1
2
  /* eslint-disable import/no-cycle */
2
3
  import { resolve } from 'path'
3
4
  import { isUsingTypes, Types, DetailedError } from '@graphql-codegen/plugin-helpers'