@graphcommerce/graphql-mesh 8.0.6 → 8.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,11 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.7
4
+
3
5
  ## 8.0.6
4
6
 
5
7
  ### Patch Changes
6
8
 
7
- - [#2248](https://github.com/graphcommerce-org/graphcommerce/pull/2248) [`0289bfb`](https://github.com/graphcommerce-org/graphcommerce/commit/0289bfb5ed611c55212d530cb0bf6a27995e74bd) - Suppress warning where a dependency is an expression, Added uglify-es and long as the dependencies couldn’t be found
8
- ([@paales](https://github.com/paales))
9
+ - [#2248](https://github.com/graphcommerce-org/graphcommerce/pull/2248) [`0289bfb`](https://github.com/graphcommerce-org/graphcommerce/commit/0289bfb5ed611c55212d530cb0bf6a27995e74bd) - Suppress warning where a dependency is an expression, Added uglify-es and long as the dependencies couldn’t be found ([@paales](https://github.com/paales))
9
10
 
10
11
  ## 8.0.5
11
12
 
@@ -79,8 +80,7 @@
79
80
 
80
81
  ### Patch Changes
81
82
 
82
- - [#2113](https://github.com/graphcommerce-org/graphcommerce/pull/2113) [`bf5ae89`](https://github.com/graphcommerce-org/graphcommerce/commit/bf5ae8979b145e7a96303f839ef2b1238712531a) - Remove requirement of toplevelAwait for graphqlSsrClient and solve logging issue in cli
83
- ([@paales](https://github.com/paales))
83
+ - [#2113](https://github.com/graphcommerce-org/graphcommerce/pull/2113) [`bf5ae89`](https://github.com/graphcommerce-org/graphcommerce/commit/bf5ae8979b145e7a96303f839ef2b1238712531a) - Remove requirement of toplevelAwait for graphqlSsrClient and solve logging issue in cli ([@paales](https://github.com/paales))
84
84
 
85
85
  ## 8.0.0-canary.100
86
86
 
@@ -1,9 +1,7 @@
1
- /* eslint-disable no-underscore-dangle */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
- const fetchRetry = require('fetch-retry')
1
+ import fetchRetry from 'fetch-retry'
4
2
 
5
- /** @type {fetchRetry.default} */
6
3
  const fetcher = fetchRetry(
4
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, no-underscore-dangle, @typescript-eslint/no-var-requires
7
5
  process.env.__NEXT_PROCESSED_ENV ? fetch : require('@whatwg-node/fetch').fetch,
8
6
  )
9
7
 
@@ -12,8 +10,10 @@ const fetcher = fetchRetry(
12
10
  * @param {import('fetch-retry').RequestInitWithRetry | undefined} options
13
11
  * @returns {Promise<Response>}
14
12
  */
15
- module.exports = (url, options) => {
16
- /** @type {RequestInit['headers']} */
13
+ export default (
14
+ url: RequestInfo | URL,
15
+ options: import('fetch-retry').RequestInitWithRetry | undefined,
16
+ ): Promise<Response> => {
17
17
  const headers = Object.fromEntries(
18
18
  Object.entries(options?.headers ?? {}).filter(([_, value]) => value !== ''),
19
19
  )
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-mesh",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.0.6",
5
+ "version": "8.0.7",
6
6
  "main": "index.ts",
7
7
  "dependencies": {
8
8
  "@graphql-mesh/apollo-link": "latest",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@apollo/client": "^3",
29
- "@graphcommerce/eslint-config-pwa": "^8.0.6",
30
- "@graphcommerce/prettier-config-pwa": "^8.0.6",
31
- "@graphcommerce/typescript-config-pwa": "^8.0.6",
29
+ "@graphcommerce/eslint-config-pwa": "^8.0.7",
30
+ "@graphcommerce/prettier-config-pwa": "^8.0.7",
31
+ "@graphcommerce/typescript-config-pwa": "^8.0.7",
32
32
  "graphql": "^16.7.1"
33
33
  },
34
34
  "devDependencies": {