@graphcommerce/hygraph-cli 9.1.0-canary.16 → 9.1.0-canary.17

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,5 +1,7 @@
1
1
  # @graphcommerce/hygraph-cli
2
2
 
3
+ ## 9.1.0-canary.17
4
+
3
5
  ## 9.1.0-canary.16
4
6
 
5
7
  ## 9.1.0-canary.15
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ function migrationActionFactory(schema, client) {
52
52
  unionField: (innerprops) => client.deleteField(innerprops),
53
53
  componentUnionField: (innerprops) => client.deleteField(innerprops)
54
54
  }
55
- } : undefined;
55
+ } : void 0;
56
56
  const migrationAction = (_schema, type, action, props, parentApiId, parentType) => {
57
57
  const alreadyExists = () => {
58
58
  if (action !== "create") {
@@ -724,7 +724,7 @@ class UpsertClient extends Client {
724
724
  upsertSimpleField(data) {
725
725
  const model = this.schema.models.find((m) => m.apiId === data.parentApiId);
726
726
  const exists = model?.fields.some((f) => f.apiId === data.apiId);
727
- return exists ? this.createSimpleField(data) : this.updateSimpleField({ ...data, embeddableModels: undefined });
727
+ return exists ? this.createSimpleField(data) : this.updateSimpleField({ ...data, embeddableModels: void 0 });
728
728
  }
729
729
  // upsertRemoteField(data: BatchMigrationCreateRemoteFieldInput) {
730
730
  // const model = this.schema.models.find((m) => m.apiId === data.parentApiId)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/hygraph-cli",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.16",
5
+ "version": "9.1.0-canary.17",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@apollo/client": "*",
28
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.16",
29
- "@graphcommerce/next-config": "^9.1.0-canary.16",
30
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.16",
31
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.16",
28
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.17",
29
+ "@graphcommerce/next-config": "^9.1.0-canary.17",
30
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.17",
31
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.17",
32
32
  "dotenv": "^16.1.4"
33
33
  },
34
34
  "devDependencies": {