Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.8 KB

Changelog.md

File metadata and controls

51 lines (40 loc) · 2.8 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[0.2.0-beta.3] - 2019-07-31

  • Test against Dgraph v1.0.16
  • Remove dependency gun
  • Implement ping callback
  • Implement disconnect callback

[0.2.0-beta.2] - 2019-03-28

  • Downgrade poison to v3.1.0.
  • Test against Dgraph v1.0.13
  • Set the GRPC deadline and DBConnection checkout timeout to use :timeout (contribution by @emhagman).
  • Update dependency uuid to elixir_uuid (contribution by @emhagman)
  • Some smaller tweaks (contribution by @optikfluffel).
  • Update the docs.

[0.2.0-beta.1] - 2019-01-22

  • Handle :gun_up and :gun_down messages as debug level for now.
  • Update gun to stable v1.2.0.
  • Test against Dgraph v1.0.11.
  • Upgrade elixir-grpc to v0.3.1.
  • Upgrade gun to v1.3.0.
  • Upgrade poison to v4.0.1.
  • Upgrade poolboy to v1.5.2.
  • Upgrade retry to v0.11.2.
  • Upgrade morphix to v0.6.0.
  • Upgrade ex_doc to v0.18.0.
  • Reduce duplicate code. Thanks to @optikfluffel for the contribution.

[0.2.0-alpha.5] - 2018-06-21

Fixed

  • Don't use module attribute for configuration values since they are set on compilation time. This prevented the enforce_struct_schema feature to work properly.

[0.2.0-alpha.4] - 2018-06-21

Added

  • New function set_struct/2. This function allow you to convert an struct type into a mutation (json based) type in dgraph. It also allows you to enforce the schema in database (adding a "class name" info before every predicate, this class name is the single name given to the elixir module struct) by activating the enforce_struct_schema in the config files. The function sends the mutation to the server and returns {:ok, result} or {:error, error} otherwise. Internally it uses Dgraphs set_json. Thanks to @WolfDan.
  • New config option keepalive. It defines the time in ms between pings to the server. Default value is :infinity which disables pings completely. Dgraph drops the connection on pings at the moment so it is disabled for now. Internally this uses :adapter_opts of grpc-elixir which in turn sets http2_opts of gun.
  • I added a changelog.

Fixed

  • The keepalive option fixes the gun_down error for now. The connection was dropped by Dgraph when the server was pinged. The server sent a {goaway,0,enhance_your_calm,<<"too_many_pings">>} message. For now pings are disabled. This is not ideal since this way ExDgraph cannot check if the connection is still alive. But I have to wait for Dgraph to get back to me on this issue. You find the issue here: hypermodeinc/dgraph#2444
  • Removed some warnings and refactored a couple of things.