Skip to content

Commit

Permalink
Fix wrong dep semver range of graphql tools/utils (#6973)
Browse files Browse the repository at this point in the history
* bump required version of @graphql-tools/utils

otherwise we get this one:
```
$ graphql-codegen --config codegen.yml
/home/capaj/work-repos/authier-repos/authier/node_modules/@graphql-codegen/plugin-helpers/index.js:502
const getCachedDocumentNodeFromSchema = utils.memoize1(utils.getDocumentNodeFromSchema);
                                              ^

TypeError: utils.memoize1 is not a function
    at Object.<anonymous> (/home/capaj/work-repos/authier-repos/authier/node_modules/@graphql-codegen/plugin-helpers/index.js:502:47)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/home/capaj/work-repos/authier-repos/authier/node_modules/@graphql-codegen/cli/bin.js:29:23)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
```

* added change set
  • Loading branch information
capaj authored Nov 4, 2021
1 parent 14e1faa commit bcc5636
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-jeans-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/plugin-helpers': patch
---

fix wrong dependency version range
2 changes: 1 addition & 1 deletion packages/utils/plugins-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^8.1.1",
"@graphql-tools/utils": "^8.5.2",
"change-case-all": "1.0.14",
"common-tags": "1.8.0",
"import-from": "4.0.0",
Expand Down

0 comments on commit bcc5636

Please sign in to comment.