Skip to content

Commit

Permalink
Version Packages (alpha) (#1408)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and huyndo committed Sep 24, 2022
1 parent 89c8020 commit 387f69f
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@
"forty-dolls-pull",
"great-avocados-knock",
"hot-bobcats-share",
"lazy-poets-return",
"mean-coats-push",
"perfect-houses-join",
"pretty-crabs-repair",
"proud-rabbits-add",
"rich-countries-taste",
"swift-chairs-rhyme",
"tame-bags-kneel",
"tasty-masks-turn",
"tricky-buses-decide",
"two-dolphins-tan",
"unlucky-pears-wash",
"wet-brooms-tap",
Expand Down
45 changes: 45 additions & 0 deletions packages/fcl-wc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @onflow/fcl-wc

## 1.0.0-alpha.3

### Patch Changes

- [#1411](https://github.com/onflow/fcl-js/pull/1411) [`3c7a1bd6`](https://github.com/onflow/fcl-js/commit/3c7a1bd6686ff41dcd4953b471c54c1256a599a0) Thanks [@gregsantos](https://github.com/gregsantos)! - Adds additional options to `init` for `pairingModalOverride` and `wcRequestHook`

```js
import * as fcl from "@onflow/fcl"
import {init} from "@onflow/fcl-wc"
// example using pairing data from wcRequestHook and providing a custom pairing modal
const {FclWcServicePlugin, client} = await init({
projectId: PROJECT_ID,
metadata: PROJECT_METADATA,
includeBaseWC: false,
wallets: [],
wcRequestHook: (data: WcRequestData) => {
const peerMetadata = data?.pairing?.peerMetadata
setSessionRequestData(peerMetadata)
setShowRequestModal(true)
},
pairingModalOverride: (
uri: string = "",
rejectPairingRequest: () => void
) => {
openCustomPairingModal(uri)
// call rejectPairingRequest() to manually reject pairing request from client
},
})

fcl.pluginRegistry.add(FclWcServicePlugin)
```
```ts
interface WcRequestData {
type: string // 'session_request' | 'pairing_request'
session: SessionTypes.Struct | undefined // https://www.npmjs.com/package/@walletconnect/types
pairing: PairingTypes.Struct | undefined // https://www.npmjs.com/package/@walletconnect/types
method: string // "flow_authn" | "flow_authz" | "flow_user_sign"
uri: string | undefined
}
```
- Updated dependencies [[`15d77220`](https://github.com/onflow/fcl-js/commit/15d77220a90be66b440129b73ffe889fe20335ab), [`75d06938`](https://github.com/onflow/fcl-js/commit/75d069380c2dbb2040af57ce39a9847fb33a7db4)]:
- @onflow/fcl@1.3.0-alpha.9
## 1.0.0-alpha.2
### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/fcl-wc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onflow/fcl-wc",
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.3",
"description": "WalletConnect adapter for FCL",
"license": "Apache-2.0",
"author": "Dapper Labs <dev@dapperlabs.com>",
Expand Down Expand Up @@ -50,6 +50,6 @@
"@walletconnect/utils": "^2.0.0-rc.2"
},
"peerDependencies": {
"@onflow/fcl": "^1.3.0-alpha.6"
"@onflow/fcl": "^1.3.0-alpha.9"
}
}
8 changes: 8 additions & 0 deletions packages/fcl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @onflow/fcl

## 1.3.0-alpha.9

### Patch Changes

- [#1409](https://github.com/onflow/fcl-js/pull/1409) [`15d77220`](https://github.com/onflow/fcl-js/commit/15d77220a90be66b440129b73ffe889fe20335ab) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Hotfix to generate template interface id util

* [#1407](https://github.com/onflow/fcl-js/pull/1407) [`75d06938`](https://github.com/onflow/fcl-js/commit/75d069380c2dbb2040af57ce39a9847fb33a7db4) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Fix circular dep in FCL prep-template-opts

## 1.3.0-alpha.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/fcl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onflow/fcl",
"version": "1.3.0-alpha.8",
"version": "1.3.0-alpha.9",
"description": "Flow Client Library",
"license": "Apache-2.0",
"author": "Dapper Labs <dev@dapperlabs.com>",
Expand Down

0 comments on commit 387f69f

Please sign in to comment.