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

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,72 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ * [#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
10
+
3
11
  ## 3.0.4
4
12
 
5
13
  ### Patch Changes
6
14
 
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
15
+ - [#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
16
 
11
17
  ## 3.0.3
12
18
 
13
19
  ### Patch Changes
14
20
 
15
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
16
- Thanks [@paales](https://github.com/paales)! - made packages public
21
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
17
22
 
18
23
  ## 3.0.2
19
24
 
20
25
  ### Patch Changes
21
26
 
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.
27
+ - [#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
28
 
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.
29
+ * [#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
30
 
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.
31
+ 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
32
 
39
33
  ## 3.0.1
40
34
 
41
35
  ### Patch Changes
42
36
 
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
37
+ - [`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
38
 
47
39
  ## 3.0.0
48
40
 
49
41
  ### Major Changes
50
42
 
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
43
+ - [#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
44
 
55
- All notable changes to this project will be documented in this file. See
56
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
45
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
57
46
 
58
47
  ## [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
48
 
60
49
  ### Bug Fixes
61
50
 
62
- - graphql-mesh missing inmemory lru
63
- ([6c71c25](https://github.com/ho-nl/m2-pwa/commit/6c71c256911072ace19037616e0ce2ab478bf070))
51
+ - graphql-mesh missing inmemory lru ([6c71c25](https://github.com/ho-nl/m2-pwa/commit/6c71c256911072ace19037616e0ce2ab478bf070))
64
52
 
65
53
  ## [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
54
 
67
55
  ### Bug Fixes
68
56
 
69
- - do not build on install
70
- ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
57
+ - do not build on install ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
71
58
 
72
59
  # [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
60
 
74
61
  ### Features
75
62
 
76
- - add postinstall commands to run properly on deploy
77
- ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
63
+ - add postinstall commands to run properly on deploy ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
78
64
 
79
65
  ## [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
66
 
81
67
  ### Bug Fixes
82
68
 
83
- - build packages before releasing
84
- ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
69
+ - build packages before releasing ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
85
70
 
86
71
  ## [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
72
 
@@ -91,40 +76,26 @@ All notable changes to this project will be documented in this file. See
91
76
 
92
77
  ### Bug Fixes
93
78
 
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))
79
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
80
+ - make sure graphql imports import Type correctly ([bc7cce0](https://github.com/ho-nl/m2-pwa/commit/bc7cce0e5013f46acccc316bcb7b90394106b8d2))
98
81
 
99
82
  ### Features
100
83
 
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))
84
+ - added near-operation-file graphql codegen structure ([e25bdd1](https://github.com/ho-nl/m2-pwa/commit/e25bdd130ac41325619a7d0648e3cb68f2380d32))
85
+ - allow for resolving fragments from directories other than the current target ([26c155b](https://github.com/ho-nl/m2-pwa/commit/26c155b6ff31958ff61cc800db6dc359d7d6ce99))
86
+ - **graphql-codegen-near-operation-file:** do not export fragment documents ([f0f7091](https://github.com/ho-nl/m2-pwa/commit/f0f70911641b368834a12251b48aac733becf3b4))
87
+ - **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))
88
+ - **next-config:** introduced package to streamline the setup of new examples ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
89
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
90
+ - 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))
91
+ - upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
119
92
 
120
93
  # [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
94
 
122
95
  ### Bug Fixes
123
96
 
124
- - ignore md files from triggering version updates
125
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
97
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
126
98
 
127
99
  ### Features
128
100
 
129
- - **playwright:** added new playwright package to enable browser testing
130
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
101
+ - **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.5",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.js",
8
8
  "engines": {
@@ -25,15 +25,16 @@
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.0.5",
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
34
  "@graphql-codegen/add": "^3.1.1",
35
35
  "@graphql-codegen/plugin-helpers": "^2.4.2",
36
- "@graphql-codegen/visitor-plugin-common": "^2.7.1",
36
+ "@graphql-codegen/visitor-plugin-common": "^2.7.3",
37
+ "@graphql-tools/utils": "^8.6.2",
37
38
  "@types/parse-filepath": "^1.0.0",
38
39
  "graphql": "^16.3.0",
39
40
  "parse-filepath": "^1.0.2"
@@ -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'