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 e949112
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

1.1.0 / 2016-12-01
==================

* Added option to show original locations and paths in error

1.0.2 / 2016-11-11
==================
* Fix for data serialization
Expand Down
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 e949112

Please sign in to comment.