Skip to content

Commit

Permalink
Release 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed Jan 9, 2021
1 parent d34544b commit 3b7d462
Show file tree
Hide file tree
Showing 19 changed files with 90 additions and 41 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 56 additions & 7 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## next - unreleased

### Feature: database sharding
## 0.21.0

### Feature: Database sharding

This release makes it possible to [shard subgraph
storage](./docs/sharding.md) and spread subgraph deployments, and the load
Expand All @@ -14,7 +16,54 @@ out in a test environment, but do not recommend it yet for production use**
In particular, the details of how sharding is configured may change in
backwards-incompatible ways in the future.

## 0.20
### Breaking change: Require a block number in `proofOfIndexing` queries

This changes the `proofOfIndexing` GraphQL API from

```graphql
type Query {
proofOfIndexing(subgraph: String!, blockHash: Bytes!, indexer: Bytes): Bytes
}
```

to

```graphql
type Query {
proofOfIndexing(
subgraph: String!
blockNumber: Int!
blockHash: Bytes!
indexer: Bytes
): Bytes
}
```

This allows the indexer agent to provide a block number and hash to be able
to obtain a POI even if this block is not cached in the Ethereum blocks
cache. Prior to this, the POI would be `null` if this wasn't the case, even
if the subgraph deployment in question was up to date, leading to the indexer
missing out on indexing rewards.

### Misc

- Fix non-determinism caused by not (always) correctly reverting dynamic
sources when handling reorgs.
- Integrate the query cache into subscriptions to improve their performance.
- Add `graphman` crate for managing Graph Node infrastructure.
- Improve query cache logging.
- Expose indexing status port (`8030`) from Docker image.
- Remove support for unnecessary data sources `templates` inside subgraph
data sources. They are only supported at the top level.
- Avoid sending empty store events through the database.
- Fix database connection deadlocks.
- Rework the codebase to use `anyhow` instead of `failure`.
- Log stack trace in case of database connection timeouts, to help with root-causing.
- Fix stack overflows in GraphQL parsing.
- Disable fulltext search by default (it is nondeterministic and therefore
not currently supported in the network).

## 0.20.0

**NOTE: JSONB storage is no longer supported. Do not upgrade to this
release if you still have subgraphs that were deployed with a version
Expand Down Expand Up @@ -308,13 +357,13 @@ that are associated with a particular trading pair, which is included in the
created data source, like so:

```ts
import { DataSourceContext } from "@graphprotocol/graph-ts";
import { Exchange } from "../generated/templates";
import { DataSourceContext } from '@graphprotocol/graph-ts'
import { Exchange } from '../generated/templates'

export function handleNewExchange(event: NewExchange): void {
let context = new DataSourceContext();
context.setString("tradingPair", event.params.tradingPair);
Exchange.createWithContext(event.params.exchange, context);
let context = new DataSourceContext()
context.setString('tradingPair', event.params.tradingPair)
Exchange.createWithContext(event.params.exchange, context)
}
```

Expand Down
2 changes: 1 addition & 1 deletion chain/arweave/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-chain-arweave"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion chain/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-chain-ethereum"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-core"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion graph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion graphql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-graphql"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion mock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-mock"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-node"
version = "0.20.0"
version = "0.21.0"
edition = "2018"
default-run = "graph-node"

Expand Down
2 changes: 1 addition & 1 deletion runtime/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-runtime-derive"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-runtime-wasm"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-server-http"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/index-node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-server-index-node"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/json-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-server-json-rpc"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-server-metrics"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/websocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-server-websocket"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion store/postgres/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-store-postgres"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion store/test-store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-store"
version = "0.20.0"
version = "0.21.0"
authors = ["Leonardo Yvens <[email protected]>"]
edition = "2018"
description = "Provides static store instance for tests."
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-tests"
version = "0.20.0"
version = "0.21.0"
edition = "2018"

[dev-dependencies]
Expand Down

0 comments on commit 3b7d462

Please sign in to comment.