Files
trezor-suite/packages/connect

@trezor/connect API version 9.0.0-beta.5

Build Status NPM Known Vulnerabilities

Trezor Connect is a platform for easy integration of Trezor into 3rd party services, as well as into Trezor Suite. It provides an API with functionality to access public keys, sign transactions and authenticate users.

User interface is presented in a secure popup window served from connect.trezor.io/<version>/popup.html. To try it out, use @trezor/connect-explorer hosted here.

Version 9+ (experimental)

Since version 9 we are adopting a new versioning strategy. With every release, we are going to update two urls

Version 9+ will be available as @trezor/connect and @trezor/connect-web npm packages.

Step by step release process

  • Make sure you have released all npm dependencies.
  • Optional: if unsure run node ./ci/scripts/check-npm-dependencies.js connect. Please note that this script will report unreleased dependencies even for changes that do not affect runtime (READMEs etc.)
  • bump version in all @trezor/connect* packages (except plugin packages). yarn workspace @trezor/connect version:<beta|patch|minor|major>
  • make sure CHANGELOG files have been updated
  • merge into develop branch
  • from develop branch create a pull requests into branch release/connect-v9
  • gitlab: click manual release @trezor/connect-web and @trezor/connect into npm
  • gitlab: click manual deploy job to connect.trezor.io/9

Version 8 (stable)

Currently, we are at version 8, which has an url https://connect.trezor.io/8/trezor-connect.js.

Version 8 is available as trezor-connect npm package.

If you would like to find out which version is deployed precisely simply run:

curl -s https://connect.trezor.io/8/trezor-connect.js | grep VERSION

With regards to this repo - All updates should go to current version branch, the previous releases are in corresponding branches. The gh-pages is the same older version, that is used at trezor.github.io/connect/connect.js, and it's there for backwards compatibility; please don't touch.

For deployment process of trezor-connect v8 refer to trezor/connect repository

Docs

Interactive API explorer is available on https://connect.trezor.io/9/#/

Documentation is available docs/packages/connect

Examples

A collection of examples on how to implement @trezor/connect in various environments is available in packages/connect-examples

Tests

For integration testing against trezord and emulator refer to this document.