@graphcommerce/graphql 5.1.0-canary.2 → 5.1.0-canary.3
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 +11 -0
- package/index.ts +0 -1
- package/package.json +17 -18
- package/types.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.1.0-canary.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
8
|
+
|
|
9
|
+
- Updated the @mui/material package
|
|
10
|
+
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
11
|
+
- Upgraded dependencies including type-fest and graphql-mesh
|
|
12
|
+
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
13
|
+
|
|
3
14
|
## 5.1.0-canary.2
|
|
4
15
|
|
|
5
16
|
## 5.1.0-canary.1
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "5.1.0-canary.
|
|
5
|
+
"version": "5.1.0-canary.3",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -12,30 +12,29 @@
|
|
|
12
12
|
"project": "./tsconfig.json"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^5.1.0-canary.2",
|
|
17
|
-
"@graphcommerce/prettier-config-pwa": "^5.1.0-canary.2",
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "^5.1.0-canary.2",
|
|
19
|
-
"@playwright/test": "^1.21.1"
|
|
20
|
-
},
|
|
21
15
|
"dependencies": {
|
|
22
|
-
"@apollo/client": "^3.
|
|
23
|
-
"@graphcommerce/graphql-codegen-near-operation-file": "5.1.0-canary.
|
|
24
|
-
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "5.1.0-canary.
|
|
16
|
+
"@apollo/client": "^3.7.1",
|
|
17
|
+
"@graphcommerce/graphql-codegen-near-operation-file": "5.1.0-canary.3",
|
|
18
|
+
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "5.1.0-canary.3",
|
|
25
19
|
"@graphql-codegen/add": "3.2.1",
|
|
26
20
|
"@graphql-codegen/fragment-matcher": "3.3.1",
|
|
27
21
|
"@graphql-codegen/introspection": "2.2.1",
|
|
28
22
|
"@graphql-codegen/schema-ast": "2.5.1",
|
|
29
|
-
"@graphql-codegen/typed-document-node": "2.3.
|
|
30
|
-
"@graphql-codegen/typescript": "2.
|
|
31
|
-
"@graphql-codegen/typescript-apollo-client-helpers": "2.2.
|
|
32
|
-
"@graphql-codegen/typescript-document-nodes": "2.3.
|
|
33
|
-
"@graphql-codegen/typescript-operations": "2.5.
|
|
23
|
+
"@graphql-codegen/typed-document-node": "2.3.7",
|
|
24
|
+
"@graphql-codegen/typescript": "2.8.2",
|
|
25
|
+
"@graphql-codegen/typescript-apollo-client-helpers": "2.2.6",
|
|
26
|
+
"@graphql-codegen/typescript-document-nodes": "2.3.7",
|
|
27
|
+
"@graphql-codegen/typescript-operations": "2.5.7",
|
|
34
28
|
"apollo3-cache-persist": "^0.14.1",
|
|
35
|
-
"graphql": "16.
|
|
29
|
+
"graphql": "16.6.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@graphcommerce/eslint-config-pwa": "5.1.0-canary.3",
|
|
33
|
+
"@graphcommerce/prettier-config-pwa": "5.1.0-canary.3",
|
|
34
|
+
"@graphcommerce/typescript-config-pwa": "5.1.0-canary.3"
|
|
36
35
|
},
|
|
37
36
|
"peerDependencies": {
|
|
38
|
-
"react": "^18.
|
|
39
|
-
"react-dom": "^18.
|
|
37
|
+
"react": "^18.2.0",
|
|
38
|
+
"react-dom": "^18.2.0"
|
|
40
39
|
}
|
|
41
40
|
}
|
package/types.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** The GraphQL API will return fields as null if they are not required. */
|
|
2
|
-
export type ObjectNonNullable<T> = {
|
|
3
|
-
[P in keyof T]: NonNullable<T[P]>
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/** Typescript will return null for fields */
|
|
7
|
-
export function removeNull<T extends Record<string, unknown>>(object: T): ObjectNonNullable<T> {
|
|
8
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
9
|
-
|
|
10
|
-
const myobj = { ...object } as ObjectNonNullable<T>
|
|
11
|
-
Object.keys(myobj).forEach((key: keyof T) => {
|
|
12
|
-
if (myobj[key] === null) myobj[key] = undefined as NonNullable<T[keyof T]>
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
return myobj
|
|
16
|
-
}
|