@graphcommerce/graphql-codegen-near-operation-file 3.0.2 → 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,72 +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
+
11
+ ## 3.0.4
12
+
13
+ ### Patch Changes
14
+
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
16
+
17
+ ## 3.0.3
18
+
19
+ ### Patch Changes
20
+
21
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
22
+
3
23
  ## 3.0.2
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
8
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
9
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
10
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
11
- 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.
12
28
 
13
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
14
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
15
- Thanks [@paales](https://github.com/paales)! - Upgraded to
16
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
17
- implementing
18
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
19
- 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.
20
30
 
21
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
22
- 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.
23
32
 
24
33
  ## 3.0.1
25
34
 
26
35
  ### Patch Changes
27
36
 
28
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
29
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
30
- 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
31
38
 
32
39
  ## 3.0.0
33
40
 
34
41
  ### Major Changes
35
42
 
36
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
37
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
38
- 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
39
44
 
40
- All notable changes to this project will be documented in this file. See
41
- [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.
42
46
 
43
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)
44
48
 
45
49
  ### Bug Fixes
46
50
 
47
- - graphql-mesh missing inmemory lru
48
- ([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))
49
52
 
50
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)
51
54
 
52
55
  ### Bug Fixes
53
56
 
54
- - do not build on install
55
- ([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))
56
58
 
57
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)
58
60
 
59
61
  ### Features
60
62
 
61
- - add postinstall commands to run properly on deploy
62
- ([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))
63
64
 
64
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)
65
66
 
66
67
  ### Bug Fixes
67
68
 
68
- - build packages before releasing
69
- ([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))
70
70
 
71
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)
72
72
 
@@ -76,40 +76,26 @@ All notable changes to this project will be documented in this file. See
76
76
 
77
77
  ### Bug Fixes
78
78
 
79
- - ignore md files from triggering version updates
80
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
81
- - make sure graphql imports import Type correctly
82
- ([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))
83
81
 
84
82
  ### Features
85
83
 
86
- - added near-operation-file graphql codegen structure
87
- ([e25bdd1](https://github.com/ho-nl/m2-pwa/commit/e25bdd130ac41325619a7d0648e3cb68f2380d32))
88
- - allow for resolving fragments from directories other than the current target
89
- ([26c155b](https://github.com/ho-nl/m2-pwa/commit/26c155b6ff31958ff61cc800db6dc359d7d6ce99))
90
- - **graphql-codegen-near-operation-file:** do not export fragment documents
91
- ([f0f7091](https://github.com/ho-nl/m2-pwa/commit/f0f70911641b368834a12251b48aac733becf3b4))
92
- - **graphql-codegen:** new [@injectable](https://github.com/injectable) and
93
- [@inject](https://github.com/inject)(into: [“FragmentName”]) directives
94
- ([f80c96c](https://github.com/ho-nl/m2-pwa/commit/f80c96ce04f83023501fc1f25e7f466810092233))
95
- - **next-config:** introduced package to streamline the setup of new examples
96
- ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
97
- - **playwright:** added new playwright package to enable browser testing
98
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
99
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
100
- [@reachdigital](https://github.com/reachdigital)
101
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
102
- - upgrade to node 14
103
- ([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))
104
92
 
105
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)
106
94
 
107
95
  ### Bug Fixes
108
96
 
109
- - ignore md files from triggering version updates
110
- ([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))
111
98
 
112
99
  ### Features
113
100
 
114
- - **playwright:** added new playwright package to enable browser testing
115
- ([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.2",
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.2",
29
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
30
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
31
- "@playwright/test": "^1.19.1"
28
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
29
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
30
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
31
+ "@playwright/test": "^1.19.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@graphql-codegen/add": "^3.1.1",
35
- "@graphql-codegen/plugin-helpers": "^2.4.1",
36
- "@graphql-codegen/visitor-plugin-common": "^2.7.1",
35
+ "@graphql-codegen/plugin-helpers": "^2.4.2",
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'