Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew E. Rhyne committed Dec 1, 2016
1 parent d5ed772 commit 0c5a260
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
1.1.0 / 2016-12-01
==================
* Added option to show original locations and paths in error (#1, @scf4)

1.0.2 / 2016-11-11
==================
* Fix for data serialization
* Fix for data serialization (@thebigredgeek)

1.0.1 / 2016-11-10
==================

* Initial release
* Initial release (@thebigredgeek)
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,11 @@ Creates and returns an error class with the given `name` and `message`, optional
#### Options (default):

- `showPath` *(false)*: Preserve the GraphQLError `path` data.
- `showLocations` *(false)*: Preserve the GraphQLError `locations` data.
- `showLocations` *(false)*: Preserve the GraphQLError `locations` data.

### formatError (error, strict = false): ApolloError|Error|null
If the error is a known ApolloError, returns the serialized form of said error.

**Otherwise**, *if strict is not truthy*, returns the original error passed into formatError.

**Otherwise**, *if strict is truthy*, returns null.

## TODO

- Add better docs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-errors",
"version": "1.0.2",
"version": "1.1.0",
"description": "Machine-readable custom errors for Apollostack's GraphQL server",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 0c5a260

Please sign in to comment.