Commit 289846b
authored
Version Packages (#7917)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## @apollo/[email protected]
### Minor Changes
- [#7916](#7916)
[`4686454`](4686454)
Thanks [@andrewmcgivery](https://github.com/andrewmcgivery)! - Add
`hideSchemaDetailsFromClientErrors` option to ApolloServer to allow
hiding 'did you mean' suggestions from validation errors.
Even with introspection disabled, it is possible to "fuzzy test" a graph
manually or with automated tools to try to determine the shape of your
schema. This is accomplished by taking advantage of the default behavior
where a misspelt field in an operation
will be met with a validation error that includes a helpful "did you
mean" as part of the error text.
For example, with this option set to `true`, an error would read `Cannot
query field "help" on type "Query".` whereas with this option set to
`false` it would read `Cannot query field "help" on type "Query". Did
you mean "hello"?`.
We recommend enabling this option in production to avoid leaking
information about your schema to malicious actors.
To enable, set this option to `true` in your `ApolloServer` options:
```javascript
const server = new ApolloServer({
typeDefs,
resolvers,
hideSchemaDetailsFromClientErrors: true,
});
```
## @apollo/[email protected]
### Patch Changes
- Updated dependencies
\[[`4686454`](4686454)]:
- @apollo/[email protected]
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 4686454 commit 289846b
File tree
6 files changed
+37
-29
lines changed- .changeset
- packages
- integration-testsuite
- server
6 files changed
+37
-29
lines changedThis file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
3 | 26 | | |
4 | 27 | | |
5 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments