Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Latest commit

 

History

History
275 lines (222 loc) · 9.99 KB

CHANGELOG.md

File metadata and controls

275 lines (222 loc) · 9.99 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.

Fixed

  • Improve data sources filtering handling and error messages

[0.18.2] - 2021-07-29

Upgrade priority: High. Fix failed to store schema object array in correct format in database.

Fixed

  • When the schema object type is an array convert to Jsonb type (#406)

[0.18.1] - 2021-07-27

Upgrade priority: Low. Upgrade only to support a new polkadot/api version and for types.

Changed

  • Bump polkadot/api to 5.2.1 (#402)

Fixed

  • Disable api.at() in patched API (#402)
  • Fix to improve snake case handling for foreign keys and unique index constraint (#382)
  • Fix subql-node --help so that it displays full options (#396)

Added

  • Expose best block height in meta (#392)

[0.18.0] - 2021-07-06

Upgrade priority: High. Recommend for all projects to upgrade. Require re-indexing if the project previous deployed with node v0.17.0 to v0.17.3

Fixed

  • Fix metric listener handle skip dictionary (#380)

[0.17.4] - 2021-07-06

Upgrade priority: High. Require re-indexing if the project previous deployed with node v0.17.0 to v0.17.3 due to some blocks are missed when indexing.

Fixed

  • Fix problem when filling the block number buffer missing the last number which has caused some block records are missing. (#378)

[0.17.3] - 2021-07-06

Upgrade priority: High.

Fixed

  • Fixed bug that prevented indexes from being added automatically on foreign keys (#371)

Added

  • add profiler to monitoring indexer performance (#369)
  • add metrics to listen status of using dictionary and number of times it been skipped. (#369)

[0.17.2] - 2021-07-01

Upgrade priority: High.

Fixed

  • fix get runtimeVersion failed when fetch service initialization (#367)
  • set useDictionary to false when one of the event/extrinsic filters are not provided (#367)

[0.17.1] - 2021-06-29

Upgrade priority: High.

Fixed

  • Fix an edge case for dictionary query, add blocknumber max range to speed up dictionary (#365)

[0.17.0] - 2021-06-25

Added

  • Add an external dictionary feature to massively improve indexing speed.
    • Enable by --network-dictionary=<dictionary_HTTP_url> or in project.yaml - read more (#342)
    • Add dictionary service to fetch dictionary from external GraphQL API (#342)
    • Add additional block number buffer in fetch service to handle incoming dictionary data (#342)

Changed

  • replace vm2 with @subql/x-vm2 (#358)
  • Update other dependencies (#358)

[0.16.2] - 2021-06-28

Changed

  • Bump polkadot/api to 4.16.2 (#363)

[0.16.1] - 2021-06-22

Added

  • Add arg for enable/disable timestamp created_at and updated_at though --timestamp-field (#352)

[0.16.0] - 2021-06-22

Changed

  • metadata expose last processed block (#327)
  • Remove created_at and updated_at from table (#343)
  • Bump polkadot/api to 4.15.1 (#350)

[0.15.1] - 2021-05-27

Changed

  • Bump polkadot/api to 4.11.2

[0.15.0] - 2021-05-24

Changed

  • Bump polkadot/api to 4.11.1

Fixed

  • Skip fetch finalized block until API is ready.
  • Fix indexes detection

[0.14.0] - 2021-05-19

Fixed

  • Use pull instead of subscribe to get new block height. This solves issues where the subscription stalls and SubQuery reports an incorrect block height.

Changed

  • Not all api.rpc are banned now, historical RPC methods can be called. See the docs link (#304)
  • Bump polkadot/api dependency (#310)
  • Replace vm2 with fork to support lib like @polkadot/* that uses esm as default (#311)

[0.13.0] - 2021-05-06

  • Bump release version due to recent major updates, also need publish new release to npm.

[0.12.3] - 2021-05-04

Added

  • Automatically verifies that a model's indexed fields are supported by extracting indexed fields from the database (#289)
  • [Experimental Feature] We're removed the restrictions on using third party CommonJS libraries in your SubQuery project sandbox - please read more about this in our updated documentation (#292)
  • Support for more NodeJS modules (buffer, crypto, util, events, and path) (#294)

0.12.2 - 2021-04-21

Added

  • Enforce index on foreign key field (#285)

Fixed

  • Improve logs for db sync, catch error and exit (#283)

0.12.0 - 2021-04-20

Fixed

  • Bump dependencies for logger
  • Fix query for double map storage (#269)

Added

  • Support network filter for dataSources (#247)
  • Expose events in SubstrateBlock (#256)
  • api.findCall and api.findError will use current block's metadata (#251)
  • Inject global variable logger in sandbox and depricated console.log in subquery project, use logger instead. (#259)
  • Create indexes on the fields with @index and allow querying by indexed field (#271)
  • Create jsonb column for fields marked as jsonField in schema.graphql (#275)
  • Bump @polkadot/api version to v4.6.2

0.11.0 - 2021-03-25

Fixed

  • Fix benchmark output format issues (#235)
  • Only warning when user set start block to number smaller than 1. (#239)

Added

  • Support entity relations (#132)
  • Refactor api.query...multi(),  api.queryMulti() to use rpc.queryStorageAt() (#244)

0.10.2 - 2021-03-11

Added

  • refactor logger to @subql/common (#220)
  • Bump polkadot/js version to v4.0.3 which shall fix a chain data decoding issue (#222)

0.10.1 - 2021-03-03

Fixed

  • use parent's specVersion to decide if metadata need to be injected (#211)

0.10.0 - 2021-03-03

Added

  • performance improvement: reduce injectMetadata call (#206)
  • performance improvement: reduce specVersion query for each batch (#207)

0.9.2 - 2021-03-03

Added

  • more comprehensive timeout error stack (#198)
  • use logger.info() instead of log() for sandbox logging (#197)
  • estimate time remaining consider block increases (#199)
  • add configurable timeout (#202)
  • bump @polkadot/api to 3.11.1 (#203)

0.9.1 - 2021-03-03

Fixed

  • revert metrics name changes (#193)

Added

  • Update subquery starter repo path to new organization (#196)

0.9.0 - 2021-02-23

Added

  • Ian improve error logging (#181): support --log-level flag, error stack will be correctly organized
  • Add benchmark outputs (#183): will print benchmark stats every 15s
  • add meta api and store network info in subqueries table (#191)

Fixed

  • fix memory overflow and timeouts while indexing a large number of events

0.8.3 - 2021-02-17

Fixed

  • keep retrying failed block not skipping it (#175)

0.8.2 - 2021-02-16

Fixed

  • fix query.system.lastRuntimeUpgrade return null before the first runtime upgrade, use rpc.state.getRuntimeVersion instead (#169)
  • after connection reconnected, indexing will now resume (#168)

0.8.1 - 2021-02-15

Fixed

  • fix dependencies (#164)

0.8.0 - 2021-02-15

Changed

  • bump dependencies
  • don't freeze table name (#161)

Added

  • cache metadata if specVersion bumped (#156)
  • improve logging, support --output-fmt=json (#158)
  • support override network endpoint from --network-endpoint flag (#157)
  • add prometheus metrics (#159)

0.7.0 - 2021-01-27

Fixed

  • fix crash for events not own by extrinsic (#120)

Added

  • batch fetch blocks (#124)
  • wrap all handler executions of same block in a db transaction (#125)
  • node add startscript (#128)

0.6.0 - 2021-01-25

Changed

  • bump @polkadot/api (#90)
  • clean up console output unless start with --debug (#95)
  • bump @polkadot/api to v3.6.3 (#109)

Added

  • patch and inject api in sandbox context (#103)
  • support specVersion filter and success filter (#106)
  • support other custom types option that @polkadot/api has (#107)

0.5.0 - 2021-01-15

Fixed

  • Fix BigInt transformation (#79)

Changed

  • escalate sandbox out of IndexerManager (#83)

0.4.0 - 2021-01-12

Added

  • allow user to define start block in project (#54)
  • add local flag to support create all tables in the default db schema (#59)
  • retry when can not establish connection with postgres (#61)
  • add priority to find subquery project entry point from package json file (#60)
  • support load project from tarball file (#55)

Fixed

  • read db connection strings from env (#63)

Changed

  • [BREAKING] project manifest spec updated to support custom types (#65)

0.3.0 - 2021-01-06

Added

  • support callHandler and eventHandler (#47)

0.2.0 - 2020-12-22

Added

  • support block handler
  • put subquery tables in their own db schema
  • use BigInt instead of BN (#27)

Changed

  • bump @polkadot/api to 3.1.1