@onflow/transport-grpc
Advanced tools
Comparing version 1.1.1-alpha.0 to 1.1.1
# @onflow/transport-grpc | ||
## 1.1.1 | ||
### Patch Changes | ||
- [#1227](https://github.com/onflow/fcl-js/pull/1227) [`352f1460`](https://github.com/onflow/fcl-js/commit/352f1460a2f34d228a74fa4bbc6fcf6e68a968b6) Thanks [@jribbink](https://github.com/jribbink)! - Switch to fcl-bundle instead of microbundle for build scripts | ||
- Updated dependencies [[`352f1460`](https://github.com/onflow/fcl-js/commit/352f1460a2f34d228a74fa4bbc6fcf6e68a968b6)]: | ||
- @onflow/rlp@1.0.2 | ||
- @onflow/util-address@1.0.2 | ||
- @onflow/util-invariant@1.0.2 | ||
- @onflow/util-template@1.0.3 | ||
## 1.1.1-alpha.0 | ||
@@ -4,0 +16,0 @@ |
{ | ||
"name": "@onflow/transport-grpc", | ||
"version": "1.1.1-alpha.0", | ||
"version": "1.1.1", | ||
"description": "Flow SDK GRPC Transport Module", | ||
@@ -21,3 +21,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/fcl-bundle": "^1.0.1-alpha.0", | ||
"@onflow/fcl-bundle": "^1.0.1", | ||
"jest": "^27.0.6", | ||
@@ -43,7 +43,7 @@ "jest-esm-transformer": "1.0.0" | ||
"@onflow/protobuf": "^1.1.0", | ||
"@onflow/rlp": "^1.0.2-alpha.0", | ||
"@onflow/util-address": "^1.0.2-alpha.0", | ||
"@onflow/util-invariant": "^1.0.2-alpha.0", | ||
"@onflow/util-template": "^1.0.3-alpha.0" | ||
"@onflow/rlp": "^1.0.2", | ||
"@onflow/util-address": "^1.0.2", | ||
"@onflow/util-invariant": "^1.0.2", | ||
"@onflow/util-template": "^1.0.3" | ||
} | ||
} |
@@ -14,6 +14,35 @@ --- | ||
## Install | ||
## Usage | ||
### Install | ||
```bash | ||
npm install --save @onflow/transport-grpc | ||
``` | ||
``` | ||
### Integration with FCL | ||
By default `@onflow/fcl` defaults to using the HTTP Access Node endpoint via the [HTTP Transport](/packages/transport-http/) package (`@onflow/transport-http`). This may be overriden, however. | ||
If using the gRPC Access API, the `sdk.transport` configuration key must be populated as this value defaults to the HTTP API transport. The SDK can be configured to use the gRPC API transport as follows: | ||
```javascript | ||
import { config } from "@onflow/fcl" | ||
import { send as transportGRPC } from "@onflow/transport-grpc" | ||
config({ | ||
"accessNode.api": "https://access-testnet.onflow.org", | ||
"sdk.transport": transportGRPC | ||
}) | ||
``` | ||
This will override the HTTP Transport and use the gRPC Transport instead. | ||
📖 **gRPC Access API URLs** can be found [here](https://docs.onflow.org/access-api/#flow-access-node-endpoints). The public Flow gRPC access nodes are accessible at: | ||
- Testnet `https://access-testnet.onflow.org` | ||
- Mainnet `https://access-mainnet.onflow.org` | ||
- Local Emulator `127.0.0.1:3569` | ||
For more information, please consult the [FCL-JS SDK guidelines](/docs/reference/sdk-guidelines.mdx). | ||
For information about installing and configuring FCL, see the [FCL Quick Start Tutorial](/docs/tutorials/flow-app-quickstart.mdx). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3264588
0
47
19
Updated@onflow/rlp@^1.0.2
Updated@onflow/util-address@^1.0.2
Updated@onflow/util-template@^1.0.3