Skip to content

Latest commit

 

History

History
292 lines (123 loc) · 8.45 KB

CHANGELOG.md

File metadata and controls

292 lines (123 loc) · 8.45 KB

5.0.0 (2020-06-10)

Bug Fixes

  • neuron.connection.http: fix error case so return value matches typespec (#60) (b96d871), closes #59

BREAKING CHANGES

  • neuron.connection.http: If your code expects the response field of JSONParseError to be a tuple, it will break.

4.1.2 (2020-02-19)

Bug Fixes

  • warning: compile time warning (default arguments in handle/3 are never used) (75c151c)

4.1.1 (2019-12-26)

Bug Fixes

  • fragments: remove duplicate fragments when inserting them into the query (d3a5c3d), closes #56

4.1.0 (2019-11-21)

Features

  • connection: Allow to inject custom connection module (f22287e)

4.0.0 (2019-10-25)

Bug Fixes

  • connection: fix function signature for Neuron.Connection.post (82817e7)
  • typespecs: Fix typespecs for Neuron.query/3 and Neuron.Store.set/3 (263fef4)

Features

  • fragment: raise Neuron.MissingFragmentsError for queries with missing fragments (75ddf54)

BREAKING CHANGES

  • fragment: Queries with missing fragments will now raise Neuron.MissingFragmentsError instead of a regular exception.

Unreleased

  • typespecs: Fix various type specs, specifically Neuron.query/2 can return a HTTPoison.Error.t().

3.0.1 (2019-08-26)

Bug Fixes

  • deps: Make poison a test dependency (d75e10b)

3.0.0 (2019-08-23)

Features

  • json: Use Jason as default JSOn library (3b4e472)

BREAKING CHANGES

  • json: JSON parsing library is now Jason. In order to keep using Poison you'll need to manually add it as a dependency and configure neuron to use it by running Neuron.Config.set(json_library: AnotherJSONLibrary).

2.0.0 (2019-06-26)

chore

  • deps: Update poison to 4.0, mock to 0.3.3 and coverex to 1.5 (600db92)

BREAKING CHANGES

  • Now requires elixir >= 1.6

1.2.0 (2019-05-30)

Features

  • fragment: recursively embed fragments (3807d89)

1.1.1 (2019-03-14)

Bug Fixes

  • typespecs: Fix typespec for Neuron.query/3 (e267f8c), closes #31

1.1.0 (2018-12-25)

Features

  • decode: Add support for passing options to the json decoder (#29) (f8425ac)
  • options: Allow to override connection options per request (#30) (30d99e5)
  • response: return a meaningful error when response is not JSON (#27) (32004b2)

1.0.0 (2018-10-15)

Features

  • query: Allow passing variables (ff82f0a), closes #25

BREAKING CHANGES

  • mutation/1 and mutation/2 are deprecated
  • query/2 is replaced by query/3 to allow passing variables in

0.9.1 (2018-09-21)

Bug Fixes

  • headers: Use application/json content type with :as_json (f369555)

0.9.0 (2018-09-08)

Features

  • options: Allow to override options per request (6ba4b39), closes #18

0.8.0 (2018-08-22)

Features

  • query: Allow to send queries as json (#20) (c9689a8), closes #19

0.7.0 (2018-07-01)

Features

  • fragments: Allow to register fragments to fill queries automatically (5593fc6), closes #1

0.6.0 (2018-05-15)

Features

  • connection: ability to set HTTPoison connection options (#12) (c940965)

0.5.1 (2018-03-13)

Docs

  • docs(response): Adapt docs and tests to returning errors (495cf61)

0.5.0 (2018-03-13)

BREAKING CHANGE

Now the value of response.body will be %{ data: ..., errors: ... } instead of %{ ... } (only returning data).

  • fix(response): return errors alongside data (ce2534e)

0.4.0 (2018-02-27)

Features

  • deps: Upgrade httpoison to version 1.0 (7f65a61)

0.3.1 (2017-09-05)

Bug Fixes

  • deps: Relax HTTPoison dependency version (405e748)

0.3.0 (2017-09-05)

Features

  • http: Make it possible to add custom headers (f54a9ff),

Bug Fixes

  • test: Update mock/meck to fix tests on elixir 1.5 (9768b69)

0.2.0 (2017-05-28)

Features

  • config: Allow to set url globally or for current process (3843326), closes #2

0.1.1 (2017-05-28)

Bug Fixes

  • logging: Remove unnecessary inspect (6ea9240)

0.1.0 (2017-05-28)

Features

  • neuron: interact with GraphQL endpoints ( version)