Skip to content

Releases: earthstar-project/earthstar-graphql

v6.1.1

28 Sep 09:48
Compare
Choose a tag to compare

6.1.1

Fixes

  • Updated the path display names are taken from to one that can only be edited by the author themselves, and renamed the file too.

v6.1.0

10 Sep 10:04
Compare
Choose a tag to compare

6.1.0

Features

  • Added a isPub option that can be provided when creating a context, which makes selections of the root authors, documents, and workspaces fields return empty arrays.

v6.0.0

09 Sep 14:06
Compare
Choose a tag to compare

6.0.0

Breaking

  • syncWithPub (which synced a workspace with a single pub), and syncMany (which synced many workspaces with many pubs) have been removed in favour of a single syncWithPubs mutation which syncs a single workspace with many pubs. I think this is the sweet spot.

Features

  • Added a removeWorkspace mutation which removes a workspace with a given address from the context. It can be authorised using a canRemoveWorkspace checking function provided to the schema.
  • When a workspace with an invalid address is created during the addWorkspace, syncWithPub, or syncMany mutations, the error will be gracefully caught and made part of the expected GraphQL response.

Fixes

  • Fixes an issue where no value could be passed to a non-nullable filed when syncing.
  • Fixes bad values being passed to the pulled documents in a DetailedSyncSuccess

v5.1.1

10 Sep 10:03
Compare
Choose a tag to compare

5.1.1

Fixes

  • Fix a silly bug where a workspace would be duplicated every time it was synced.

v5.1.0

01 Sep 15:00
Compare
Choose a tag to compare

5.1.0

Features

  • Added a syncMany mutation that lets you sync many workspaces with many pubs in a single operation.

v5.0.0

20 Aug 09:05
Compare
Choose a tag to compare

5.0.0

Breaking

  • The format arg on the syncWithPub mutation has been removed, as whether a pub is a GraphQL or REST pub is now automatically determined.

Features

  • Added a isGraphQlPub function export which can be used to determine whether the pub at a URL is a GraphQL pub or not.
  • Added a optional deletedAfter arg to the set mutation so that ephemeral documents can be created
  • If the workspace passed to a syncWithPub mutation does not exist, syncWithPub will create it if it passes the configurable canAddWorkspace check.

Internal

  • earthstar dependency updated to 5.2.3
  • earthstar moved into peer dependencies, as clients which may also depend on the earthstar package should use the same version.

v4.2.0

15 Aug 11:23
Compare
Choose a tag to compare

4.2.0

Improvements

v4.1.1

14 Aug 16:27
Compare
Choose a tag to compare

4.1.1

Fixes

  • Fixed an issue where deleted documents would not be synced during push or pull.

v4.1.0

14 Aug 16:25
Compare
Choose a tag to compare

Improvements

  • Added a includeDeleted field to all document querying fields, which returns deleted documents (which as of now is when a document's content is an empty string) when true.

v4.0.1

10 Aug 09:17
Compare
Choose a tag to compare

4.0.1

Fixes

  • Fixed an issue where a schema context configured with no sync filters would wrongly respond to queries for its sync filters as empty arrays.
    • I think these two should be semantically different: an undefined sync filter means the pub has no preference on documents, whereas an empty one would mean the pub is accepting nothing. (???)