Skip to content

Releases: hypermodeinc/dgraph-js

v2.0.0

05 Sep 19:29
Compare
Choose a tag to compare

Added

  • doRequest function for performing upsert, or just a query or a mutation
  • Support for ACL features in Dgraph v1.1 - login & jwt refresh
  • upsert and lang fields to proto message type SchemaNode
  • Option for server-side sequencing

Changed

  • Return type of Txn#mutate function from messages.Assigned to messages.Response
  • Updated protobufs to the latest version
  • Upgraded all typescript dev libraries to the latest version

Removed

  • Support for null values where appropriate (because of typescript warning)

v1.2.1

16 Mar 10:11
Compare
Choose a tag to compare

Fixed

  • Pass metadata and options arguments to Txn#discard in Txn#mutate

v1.2.0

12 Mar 11:45
Compare
Choose a tag to compare

Added

  • [BREAKING] Optional metadata parameter of type grpc.Metadata to the
    DgraphClientStub methods. options parameter moved to the third position
    to conform to the grpc package API.

    Methods affected - DgraphClient#alter, Txn#query, Txn#queryWithVars,
    Txn#mutate, Txn#commit and Txn#discard.

    To upgrade to this version, if using any of these methods with the options
    parameter, simply add a null argument before the options argument. For
    example, client.alter(options) becomes client.alter(null, options)

v1.1.2

07 Mar 12:35
Compare
Choose a tag to compare

Added

  • Full compatibility with Dgraph v1.0.4
  • latency field to proto message type Assigned

v1.1.1

13 Feb 07:26
Compare
Choose a tag to compare

Added

  • Compatibility with grpc v1.9

Fixed

  • Function u8ToStr which was leading to json parse errors (#17)

v1.1.0

05 Feb 18:55
Compare
Choose a tag to compare

Added

  • Full compatibility with Dgraph v1.0.2

Removed

  • startTs field from proto message type Operation

v1.0.4

02 Feb 08:48
Compare
Choose a tag to compare

Added

  • Optional options parameter of type object to the DgraphClientStub constructor
  • Optional options parameter of type grpc.CallOptions to the DgraphClientStub
    methods
  • Export Txn class

v1.0.3

26 Jan 10:39
Compare
Choose a tag to compare

Changed

  • grpc is now a peer dependency

v1.0.2

24 Jan 13:44
Compare
Choose a tag to compare

Added

  • Method DgraphClientStub#close to close the grpc client associated with DgraphClientStub
  • Method DgraphClientStub#grpcClient to return the grpc client associated with
    DgraphClientStub
  • Method DgraphClientStub#waitForReady to provide a promisified version of
    grpc.Client#waitForReady

v1.0.1

24 Jan 13:40
Compare
Choose a tag to compare

Added

  • Wrapper classes for certain proto classes to simplify the api and avoid repetitive
    serialization/deserialization code