From 618a9496a14ff3a3424dcb00b1b7bd3ced5c0f84 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Sep 2022 19:38:20 +0000 Subject: [PATCH] Version Packages --- .changeset/afraid-cobras-wash.md | 15 ---- .changeset/brown-bears-remain.md | 5 -- .changeset/clean-years-drop.md | 5 -- .changeset/curly-garlics-behave.md | 5 -- .changeset/early-hounds-invent.md | 5 -- .changeset/eleven-bobcats-complain.md | 5 -- .changeset/empty-donkeys-trade.md | 5 -- .changeset/forty-dolls-pull.md | 5 -- .changeset/great-avocados-knock.md | 5 -- .changeset/hot-bobcats-share.md | 5 -- .changeset/lazy-poets-return.md | 41 --------- .changeset/mean-coats-push.md | 5 -- .changeset/perfect-houses-join.md | 5 -- .changeset/pre.json | 49 ----------- .changeset/pretty-crabs-repair.md | 5 -- .changeset/proud-rabbits-add.md | 5 -- .changeset/rich-countries-taste.md | 5 -- .changeset/serious-spies-remember.md | 5 -- .changeset/short-llamas-kiss.md | 5 -- .changeset/swift-chairs-rhyme.md | 5 -- .changeset/tame-bags-kneel.md | 64 -------------- .changeset/tasty-masks-turn.md | 5 -- .changeset/tricky-buses-decide.md | 5 -- .changeset/two-dolphins-tan.md | 5 -- .changeset/unlucky-pears-wash.md | 7 -- .changeset/wet-brooms-tap.md | 5 -- .changeset/young-mice-bow.md | 5 -- packages/fcl-bundle/CHANGELOG.md | 10 +++ packages/fcl-bundle/package.json | 2 +- packages/fcl-wc/CHANGELOG.md | 122 ++++++++++++++++++++++++++ packages/fcl-wc/package.json | 6 +- packages/fcl/CHANGELOG.md | 52 +++++++++++ packages/fcl/package.json | 6 +- packages/sdk/CHANGELOG.md | 9 ++ packages/sdk/package.json | 6 +- packages/transport-http/CHANGELOG.md | 12 +++ packages/transport-http/package.json | 4 +- 37 files changed, 217 insertions(+), 298 deletions(-) delete mode 100644 .changeset/afraid-cobras-wash.md delete mode 100644 .changeset/brown-bears-remain.md delete mode 100644 .changeset/clean-years-drop.md delete mode 100644 .changeset/curly-garlics-behave.md delete mode 100644 .changeset/early-hounds-invent.md delete mode 100644 .changeset/eleven-bobcats-complain.md delete mode 100644 .changeset/empty-donkeys-trade.md delete mode 100644 .changeset/forty-dolls-pull.md delete mode 100644 .changeset/great-avocados-knock.md delete mode 100644 .changeset/hot-bobcats-share.md delete mode 100644 .changeset/lazy-poets-return.md delete mode 100644 .changeset/mean-coats-push.md delete mode 100644 .changeset/perfect-houses-join.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/pretty-crabs-repair.md delete mode 100644 .changeset/proud-rabbits-add.md delete mode 100644 .changeset/rich-countries-taste.md delete mode 100644 .changeset/serious-spies-remember.md delete mode 100644 .changeset/short-llamas-kiss.md delete mode 100644 .changeset/swift-chairs-rhyme.md delete mode 100644 .changeset/tame-bags-kneel.md delete mode 100644 .changeset/tasty-masks-turn.md delete mode 100644 .changeset/tricky-buses-decide.md delete mode 100644 .changeset/two-dolphins-tan.md delete mode 100644 .changeset/unlucky-pears-wash.md delete mode 100644 .changeset/wet-brooms-tap.md delete mode 100644 .changeset/young-mice-bow.md diff --git a/.changeset/afraid-cobras-wash.md b/.changeset/afraid-cobras-wash.md deleted file mode 100644 index c815532bf..000000000 --- a/.changeset/afraid-cobras-wash.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@onflow/fcl": patch -"@onflow/fcl-wc": patch ---- - -### fcl - -- Added sending `supportedStrategies` to Discovery (UI/API) on client.config - ---- - -### fcl-wc - -- updated `initFclWC` export/name to `init` -- Added `sessionRequestHook` and `injectedWallets` opts, updated pairing match to use service.uid. diff --git a/.changeset/brown-bears-remain.md b/.changeset/brown-bears-remain.md deleted file mode 100644 index 3022e31c1..000000000 --- a/.changeset/brown-bears-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Fix issue where authenticating a Discovery API service would not respect service method. diff --git a/.changeset/clean-years-drop.md b/.changeset/clean-years-drop.md deleted file mode 100644 index 206484f64..000000000 --- a/.changeset/clean-years-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Minify UMD build diff --git a/.changeset/curly-garlics-behave.md b/.changeset/curly-garlics-behave.md deleted file mode 100644 index 511a3da1c..000000000 --- a/.changeset/curly-garlics-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": minor ---- - -Add plugin registry and allow for service and strategy injection diff --git a/.changeset/early-hounds-invent.md b/.changeset/early-hounds-invent.md deleted file mode 100644 index 460288174..000000000 --- a/.changeset/early-hounds-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl-wc": patch ---- - -Update request types and make wallets from WalletConnect API opt-in diff --git a/.changeset/eleven-bobcats-complain.md b/.changeset/eleven-bobcats-complain.md deleted file mode 100644 index 998dcc707..000000000 --- a/.changeset/eleven-bobcats-complain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/transport-http": minor ---- - -Retry 429 (Too many requests) responses which are used for access node rate limiting diff --git a/.changeset/empty-donkeys-trade.md b/.changeset/empty-donkeys-trade.md deleted file mode 100644 index 18b55d89b..000000000 --- a/.changeset/empty-donkeys-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/transport-http": patch ---- - -Catch JSON error when response body is empty diff --git a/.changeset/forty-dolls-pull.md b/.changeset/forty-dolls-pull.md deleted file mode 100644 index d7899ca21..000000000 --- a/.changeset/forty-dolls-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl-bundle": patch ---- - -Set inlineDynamicImports to true as dynamic imports would cause build to fail diff --git a/.changeset/great-avocados-knock.md b/.changeset/great-avocados-knock.md deleted file mode 100644 index 00ba2a641..000000000 --- a/.changeset/great-avocados-knock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl-wc": patch ---- - -Updates ServicePlugin spec to include serviceStrategy diff --git a/.changeset/hot-bobcats-share.md b/.changeset/hot-bobcats-share.md deleted file mode 100644 index 5bb2843e5..000000000 --- a/.changeset/hot-bobcats-share.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Remove support for InteractionTemplateUtils.getInteractionTemplateAudits on mainnet until support is added diff --git a/.changeset/lazy-poets-return.md b/.changeset/lazy-poets-return.md deleted file mode 100644 index 4ca3f71cb..000000000 --- a/.changeset/lazy-poets-return.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -"@onflow/fcl-wc": patch ---- - -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 -} - -``` diff --git a/.changeset/mean-coats-push.md b/.changeset/mean-coats-push.md deleted file mode 100644 index c29dd033a..000000000 --- a/.changeset/mean-coats-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Add missing logger package to execService diff --git a/.changeset/perfect-houses-join.md b/.changeset/perfect-houses-join.md deleted file mode 100644 index 32fcc4bc9..000000000 --- a/.changeset/perfect-houses-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/transport-http": patch ---- - -Ensure that acct.tempId is always created withPrefix diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index fd9796740..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "mode": "exit", - "tag": "alpha", - "initialVersions": { - "@onflow/config": "1.0.3", - "@onflow/fcl": "1.2.0", - "@onflow/fcl-bundle": "1.1.0", - "@onflow/protobuf": "1.1.0", - "@onflow/rlp": "1.0.2", - "@onflow/sdk": "1.1.1", - "@onflow/transport-grpc": "1.1.1", - "@onflow/transport-http": "1.4.0", - "@onflow/types": "1.0.3", - "@onflow/util-actor": "1.1.1", - "@onflow/util-address": "1.0.2", - "@onflow/util-encode-key": "1.0.2", - "@onflow/util-invariant": "1.0.2", - "@onflow/util-logger": "1.1.1", - "@onflow/util-template": "1.0.3", - "@onflow/util-uid": "1.0.2", - "@onflow/fcl-wc": "0.0.0" - }, - "changesets": [ - "afraid-cobras-wash", - "brown-bears-remain", - "clean-years-drop", - "curly-garlics-behave", - "eleven-bobcats-complain", - "empty-donkeys-trade", - "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", - "short-llamas-kiss", - "swift-chairs-rhyme", - "tame-bags-kneel", - "tasty-masks-turn", - "tricky-buses-decide", - "two-dolphins-tan", - "unlucky-pears-wash", - "wet-brooms-tap", - "young-mice-bow" - ] -} diff --git a/.changeset/pretty-crabs-repair.md b/.changeset/pretty-crabs-repair.md deleted file mode 100644 index 497a39935..000000000 --- a/.changeset/pretty-crabs-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Hotfix to generate template interface id util diff --git a/.changeset/proud-rabbits-add.md b/.changeset/proud-rabbits-add.md deleted file mode 100644 index cc61c4456..000000000 --- a/.changeset/proud-rabbits-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Adds interaction template message getter utils diff --git a/.changeset/rich-countries-taste.md b/.changeset/rich-countries-taste.md deleted file mode 100644 index 33cae61e3..000000000 --- a/.changeset/rich-countries-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Hotfix to FCL query mutate prep ops diff --git a/.changeset/serious-spies-remember.md b/.changeset/serious-spies-remember.md deleted file mode 100644 index 5ccf2d115..000000000 --- a/.changeset/serious-spies-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Moves some client configuration to execService as it may be useful for services other than `authn` diff --git a/.changeset/short-llamas-kiss.md b/.changeset/short-llamas-kiss.md deleted file mode 100644 index e9feac369..000000000 --- a/.changeset/short-llamas-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -PKG -- [fcl] Adds mainnet Interaction Template Audit contract to Interaction Template Utils diff --git a/.changeset/swift-chairs-rhyme.md b/.changeset/swift-chairs-rhyme.md deleted file mode 100644 index 24b586b57..000000000 --- a/.changeset/swift-chairs-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl-bundle": minor ---- - -Automatically compress bundle if entry file ends in .min.js diff --git a/.changeset/tame-bags-kneel.md b/.changeset/tame-bags-kneel.md deleted file mode 100644 index 97e3069c3..000000000 --- a/.changeset/tame-bags-kneel.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -"@onflow/fcl-wc": minor ---- - -0.1.0 Release - -Initial alpha release of WalletConnect Adapter package for FCL. - -**EXPECT BREAKING CHANGES** - -## Usage - -The package exports `initFclWc` and `getSdkError` util. -Currently, a WalletConnect `projectId` is required and can be obtained @ https://cloud.walletconnect.com. Metadata is optional. - -Initialization returns `FclConnectServicePlugin` and `client`. The `client` can be used to subscribe to events, disconnect, and query session and pairing status. -Passing `FclConnectServicePlugin` to `fcl.pluginRegistry.add()` will enable `"WC/RPC"` service strategy and add new and existing services to FCL Discovery UI/API. - -**Note** -Setting `flow.network` in FCL config is required to enable `"WC/RPC"` service strategy to request correct chain permissions. - -```javascript -import {config} from '@onflow/config' - -config({ - flow.network: 'testnet' -}) -``` - -```javascript -import * as fcl from '@onflow/fcl' -import { initFclWc } from '@onflow/fcl-wc' - -const { FclConnectServicePlugin, client } = await initFclWc({ - projectId: PROJECT_ID, - metadata: { - name: 'FCL Connect', - description: 'FCL DApp with support for WalletConnect', - url: 'https://flow.com/', - icons: ['https://avatars.githubusercontent.com/u/62387156?s=280&v=4'] - } -}) - -fcl.pluginRegistry.add(FclConnectServicePlugin) -``` - -### Using the client - -```javascript -import { getSdkError } from '@onflow/fcl-wc' - -client.on('session_update', ({ topic, params }) => { - const session = client.session.get(topic) - console.log('EVENT', 'session_update', { topic, params, session }) -}) - -await client.disconnect({ - topic: session.topic, - reason: getSdkError('USER_DISCONNECTED') -}) - -``` - -- diff --git a/.changeset/tasty-masks-turn.md b/.changeset/tasty-masks-turn.md deleted file mode 100644 index 7629ac094..000000000 --- a/.changeset/tasty-masks-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Improve building discovery service on authn diff --git a/.changeset/tricky-buses-decide.md b/.changeset/tricky-buses-decide.md deleted file mode 100644 index 55b360f3e..000000000 --- a/.changeset/tricky-buses-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Fix circular dep in FCL prep-template-opts diff --git a/.changeset/two-dolphins-tan.md b/.changeset/two-dolphins-tan.md deleted file mode 100644 index 9a16e7142..000000000 --- a/.changeset/two-dolphins-tan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Updates Service Plugin validation to match spec, adds required serviceStrategy: {method: string, exec: () => {}) diff --git a/.changeset/unlucky-pears-wash.md b/.changeset/unlucky-pears-wash.md deleted file mode 100644 index 835a5aa5f..000000000 --- a/.changeset/unlucky-pears-wash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@onflow/fcl": minor ---- - -Adds FLIP-934 Interaction Template support to FCL. - -Interaction Template is a concept established in FLIP-934. Read more about the FLIP here: https://github.com/onflow/flips/blob/main/flips/20220503-interaction-templates.md diff --git a/.changeset/wet-brooms-tap.md b/.changeset/wet-brooms-tap.md deleted file mode 100644 index 70b4a29d2..000000000 --- a/.changeset/wet-brooms-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/sdk": patch ---- - -Fix erroneous sansPrefix requirement for acct.addr in authorization function which occured when proposer and authorizer did not match diff --git a/.changeset/young-mice-bow.md b/.changeset/young-mice-bow.md deleted file mode 100644 index 68b78dbd4..000000000 --- a/.changeset/young-mice-bow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@onflow/fcl": patch ---- - -Fixes issue where Discovery API was not loading for server side rendered applications on Safari or Chrome Incognito. diff --git a/packages/fcl-bundle/CHANGELOG.md b/packages/fcl-bundle/CHANGELOG.md index 56177dc83..6a98a8516 100644 --- a/packages/fcl-bundle/CHANGELOG.md +++ b/packages/fcl-bundle/CHANGELOG.md @@ -1,5 +1,15 @@ # @onflow/fcl-bundle +## 1.2.0 + +### Minor Changes + +- [#1359](https://github.com/onflow/fcl-js/pull/1359) [`9ea98850`](https://github.com/onflow/fcl-js/commit/9ea988503bbf4760bdee2a8bd8098be1cd95acb6) Thanks [@jribbink](https://github.com/jribbink)! - Automatically compress bundle if entry file ends in .min.js + +### Patch Changes + +- [#1366](https://github.com/onflow/fcl-js/pull/1366) [`ec6f6a65`](https://github.com/onflow/fcl-js/commit/ec6f6a659eae2157cae3def76fab0eeefccd1c28) Thanks [@jribbink](https://github.com/jribbink)! - Set inlineDynamicImports to true as dynamic imports would cause build to fail + ## 1.2.0-alpha.0 ### Minor Changes diff --git a/packages/fcl-bundle/package.json b/packages/fcl-bundle/package.json index a3bf02dda..f9e45bb2f 100644 --- a/packages/fcl-bundle/package.json +++ b/packages/fcl-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/fcl-bundle", - "version": "1.2.0-alpha.0", + "version": "1.2.0", "description": "FCL Bundler Tool", "license": "Apache-2.0", "author": "Dapper Labs ", diff --git a/packages/fcl-wc/CHANGELOG.md b/packages/fcl-wc/CHANGELOG.md index 7a4891647..0eefa1cf8 100644 --- a/packages/fcl-wc/CHANGELOG.md +++ b/packages/fcl-wc/CHANGELOG.md @@ -1,5 +1,127 @@ # @onflow/fcl-wc +## 1.0.0 + +### Minor Changes + +- [#1352](https://github.com/onflow/fcl-js/pull/1352) [`e33fa8df`](https://github.com/onflow/fcl-js/commit/e33fa8df764ec4f10696eedf520cc92ee402623d) Thanks [@gregsantos](https://github.com/gregsantos)! - 0.1.0 Release + + Initial alpha release of WalletConnect Adapter package for FCL. + + **EXPECT BREAKING CHANGES** + + ## Usage + + The package exports `initFclWc` and `getSdkError` util. + Currently, a WalletConnect `projectId` is required and can be obtained @ https://cloud.walletconnect.com. Metadata is optional. + + Initialization returns `FclConnectServicePlugin` and `client`. The `client` can be used to subscribe to events, disconnect, and query session and pairing status. + Passing `FclConnectServicePlugin` to `fcl.pluginRegistry.add()` will enable `"WC/RPC"` service strategy and add new and existing services to FCL Discovery UI/API. + + **Note** + Setting `flow.network` in FCL config is required to enable `"WC/RPC"` service strategy to request correct chain permissions. + + ```javascript + import {config} from '@onflow/config' + + config({ + flow.network: 'testnet' + }) + ``` + + ```javascript + import * as fcl from "@onflow/fcl" + import {initFclWc} from "@onflow/fcl-wc" + + const {FclConnectServicePlugin, client} = await initFclWc({ + projectId: PROJECT_ID, + metadata: { + name: "FCL Connect", + description: "FCL DApp with support for WalletConnect", + url: "https://flow.com/", + icons: ["https://avatars.githubusercontent.com/u/62387156?s=280&v=4"], + }, + }) + + fcl.pluginRegistry.add(FclConnectServicePlugin) + ``` + + ### Using the client + + ```javascript + import {getSdkError} from "@onflow/fcl-wc" + + client.on("session_update", ({topic, params}) => { + const session = client.session.get(topic) + console.log("EVENT", "session_update", {topic, params, session}) + }) + + await client.disconnect({ + topic: session.topic, + reason: getSdkError("USER_DISCONNECTED"), + }) + ``` + + - + +### Patch Changes + +- [#1396](https://github.com/onflow/fcl-js/pull/1396) [`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79) Thanks [@gregsantos](https://github.com/gregsantos)! - ### fcl + + - Added sending `supportedStrategies` to Discovery (UI/API) on client.config + + *** + + ### fcl-wc + + - updated `initFclWC` export/name to `init` + - Added `sessionRequestHook` and `injectedWallets` opts, updated pairing match to use service.uid. + +* [#1427](https://github.com/onflow/fcl-js/pull/1427) [`27bc599c`](https://github.com/onflow/fcl-js/commit/27bc599cdc79be9246dbbeb5e69afa60174f0577) Thanks [@gregsantos](https://github.com/gregsantos)! - Update request types and make wallets from WalletConnect API opt-in + +- [#1396](https://github.com/onflow/fcl-js/pull/1396) [`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79) Thanks [@gregsantos](https://github.com/gregsantos)! - Updates ServicePlugin spec to include serviceStrategy + +* [#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 [[`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79), [`2a5fa910`](https://github.com/onflow/fcl-js/commit/2a5fa910009501c7c789efc9b1c1731668578361), [`9ea98850`](https://github.com/onflow/fcl-js/commit/9ea988503bbf4760bdee2a8bd8098be1cd95acb6), [`e33fa8df`](https://github.com/onflow/fcl-js/commit/e33fa8df764ec4f10696eedf520cc92ee402623d), [`3fdcc3be`](https://github.com/onflow/fcl-js/commit/3fdcc3be2d206c0df3f3b250012db5c18cac3bed), [`6708494d`](https://github.com/onflow/fcl-js/commit/6708494df236dc8c7375a2f91dc04fbcc03235c8), [`15d77220`](https://github.com/onflow/fcl-js/commit/15d77220a90be66b440129b73ffe889fe20335ab), [`f14b730c`](https://github.com/onflow/fcl-js/commit/f14b730c52bec664bda7bf222e3f0c0ab9c70f40), [`0a9c9677`](https://github.com/onflow/fcl-js/commit/0a9c96770933df4e0ed685b0ee4575533e345ecb), [`17a7f1e4`](https://github.com/onflow/fcl-js/commit/17a7f1e413340f72f45350075e8ea79ce1c2b711), [`5e6d114a`](https://github.com/onflow/fcl-js/commit/5e6d114a8fb0489c6bc70df8ec02d7ec4bb9ea1d), [`ecbd77b2`](https://github.com/onflow/fcl-js/commit/ecbd77b2acfbe4a28793baca3db47c1d5347247d), [`75d06938`](https://github.com/onflow/fcl-js/commit/75d069380c2dbb2040af57ce39a9847fb33a7db4), [`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79), [`1982c00b`](https://github.com/onflow/fcl-js/commit/1982c00bc334403bb603762a7f921bbe1887ee2b), [`f9f1dab7`](https://github.com/onflow/fcl-js/commit/f9f1dab70a6014b68ce5197544fae396340b6670)]: + - @onflow/fcl@1.3.0 + ## 1.0.0-alpha.3 ### Patch Changes diff --git a/packages/fcl-wc/package.json b/packages/fcl-wc/package.json index 0e61e3abc..c0c65964b 100644 --- a/packages/fcl-wc/package.json +++ b/packages/fcl-wc/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/fcl-wc", - "version": "1.0.0-alpha.3", + "version": "1.0.0", "description": "WalletConnect adapter for FCL", "license": "Apache-2.0", "author": "Dapper Labs ", @@ -34,7 +34,7 @@ "start": "fcl-bundle --watch" }, "devDependencies": { - "@onflow/fcl-bundle": "^1.2.0-alpha.0", + "@onflow/fcl-bundle": "^1.2.0", "better-sqlite3": "^7.6.2", "jest": "^27.0.6", "jest-esm-transformer": "1.0.0" @@ -50,6 +50,6 @@ "@walletconnect/utils": "^2.0.0-rc.2" }, "peerDependencies": { - "@onflow/fcl": "^1.3.0-alpha.9" + "@onflow/fcl": "^1.3.0" } } diff --git a/packages/fcl/CHANGELOG.md b/packages/fcl/CHANGELOG.md index 8029d88e0..f4dfcedc1 100644 --- a/packages/fcl/CHANGELOG.md +++ b/packages/fcl/CHANGELOG.md @@ -1,5 +1,57 @@ # @onflow/fcl +## 1.3.0 + +### Minor Changes + +- [#1352](https://github.com/onflow/fcl-js/pull/1352) [`e33fa8df`](https://github.com/onflow/fcl-js/commit/e33fa8df764ec4f10696eedf520cc92ee402623d) Thanks [@gregsantos](https://github.com/gregsantos)! - Add plugin registry and allow for service and strategy injection + +* [#1323](https://github.com/onflow/fcl-js/pull/1323) [`1982c00b`](https://github.com/onflow/fcl-js/commit/1982c00bc334403bb603762a7f921bbe1887ee2b) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Adds FLIP-934 Interaction Template support to FCL. + + Interaction Template is a concept established in FLIP-934. Read more about the FLIP here: https://github.com/onflow/flips/blob/main/flips/20220503-interaction-templates.md + +### Patch Changes + +- [#1396](https://github.com/onflow/fcl-js/pull/1396) [`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79) Thanks [@gregsantos](https://github.com/gregsantos)! - ### fcl + + - Added sending `supportedStrategies` to Discovery (UI/API) on client.config + + *** + + ### fcl-wc + + - updated `initFclWC` export/name to `init` + - Added `sessionRequestHook` and `injectedWallets` opts, updated pairing match to use service.uid. + +* [#1375](https://github.com/onflow/fcl-js/pull/1375) [`2a5fa910`](https://github.com/onflow/fcl-js/commit/2a5fa910009501c7c789efc9b1c1731668578361) Thanks [@chasefleming](https://github.com/chasefleming)! - Fix issue where authenticating a Discovery API service would not respect service method. + +- [#1359](https://github.com/onflow/fcl-js/pull/1359) [`9ea98850`](https://github.com/onflow/fcl-js/commit/9ea988503bbf4760bdee2a8bd8098be1cd95acb6) Thanks [@jribbink](https://github.com/jribbink)! - Minify UMD build + +* [#1386](https://github.com/onflow/fcl-js/pull/1386) [`3fdcc3be`](https://github.com/onflow/fcl-js/commit/3fdcc3be2d206c0df3f3b250012db5c18cac3bed) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Remove support for InteractionTemplateUtils.getInteractionTemplateAudits on mainnet until support is added + +- [#1372](https://github.com/onflow/fcl-js/pull/1372) [`6708494d`](https://github.com/onflow/fcl-js/commit/6708494df236dc8c7375a2f91dc04fbcc03235c8) Thanks [@gregsantos](https://github.com/gregsantos)! - Add missing logger package to execService + +* [#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 + +- [#1397](https://github.com/onflow/fcl-js/pull/1397) [`f14b730c`](https://github.com/onflow/fcl-js/commit/f14b730c52bec664bda7bf222e3f0c0ab9c70f40) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Adds interaction template message getter utils + +* [#1403](https://github.com/onflow/fcl-js/pull/1403) [`0a9c9677`](https://github.com/onflow/fcl-js/commit/0a9c96770933df4e0ed685b0ee4575533e345ecb) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - Hotfix to FCL query mutate prep ops + +- [#1417](https://github.com/onflow/fcl-js/pull/1417) [`17a7f1e4`](https://github.com/onflow/fcl-js/commit/17a7f1e413340f72f45350075e8ea79ce1c2b711) Thanks [@gregsantos](https://github.com/gregsantos)! - Moves some client configuration to execService as it may be useful for services other than `authn` + +* [#1413](https://github.com/onflow/fcl-js/pull/1413) [`5e6d114a`](https://github.com/onflow/fcl-js/commit/5e6d114a8fb0489c6bc70df8ec02d7ec4bb9ea1d) Thanks [@JeffreyDoyle](https://github.com/JeffreyDoyle)! - PKG -- [fcl] Adds mainnet Interaction Template Audit contract to Interaction Template Utils + +- [#1357](https://github.com/onflow/fcl-js/pull/1357) [`ecbd77b2`](https://github.com/onflow/fcl-js/commit/ecbd77b2acfbe4a28793baca3db47c1d5347247d) Thanks [@gregsantos](https://github.com/gregsantos)! - Improve building discovery service on authn + +* [#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 + +- [#1396](https://github.com/onflow/fcl-js/pull/1396) [`8475d5a4`](https://github.com/onflow/fcl-js/commit/8475d5a49e07a678da35a1b8f45751f599256e79) Thanks [@gregsantos](https://github.com/gregsantos)! - Updates Service Plugin validation to match spec, adds required serviceStrategy: {method: string, exec: () => {}) + +* [#1404](https://github.com/onflow/fcl-js/pull/1404) [`f9f1dab7`](https://github.com/onflow/fcl-js/commit/f9f1dab70a6014b68ce5197544fae396340b6670) Thanks [@chasefleming](https://github.com/chasefleming)! - Fixes issue where Discovery API was not loading for server side rendered applications on Safari or Chrome Incognito. + +* Updated dependencies [[`99e03af7`](https://github.com/onflow/fcl-js/commit/99e03af76e526593e5c989e43754ce23420e317f)]: + - @onflow/sdk@1.1.2 + ## 1.3.0-alpha.10 ### Patch Changes diff --git a/packages/fcl/package.json b/packages/fcl/package.json index 7580c3b55..89fbe962f 100644 --- a/packages/fcl/package.json +++ b/packages/fcl/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/fcl", - "version": "1.3.0-alpha.10", + "version": "1.3.0", "description": "Flow Client Library", "license": "Apache-2.0", "author": "Dapper Labs ", @@ -23,7 +23,7 @@ } }, "devDependencies": { - "@onflow/fcl-bundle": "^1.2.0-alpha.0", + "@onflow/fcl-bundle": "^1.2.0", "jest": "^27.0.6", "jest-esm-transformer": "1.0.0" }, @@ -45,7 +45,7 @@ "@onflow/config": "^1.0.3", "@onflow/interaction": "0.0.11", "@onflow/rlp": "^1.0.2", - "@onflow/sdk": "^1.1.2-alpha.1", + "@onflow/sdk": "^1.1.2", "@onflow/types": "^1.0.3", "@onflow/util-actor": "^1.1.1", "@onflow/util-address": "^1.0.2", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 402fd47ac..4a2a81944 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,14 @@ # @onflow/sdk +## 1.1.2 + +### Patch Changes + +- [#1339](https://github.com/onflow/fcl-js/pull/1339) [`99e03af7`](https://github.com/onflow/fcl-js/commit/99e03af76e526593e5c989e43754ce23420e317f) Thanks [@jribbink](https://github.com/jribbink)! - Fix erroneous sansPrefix requirement for acct.addr in authorization function which occured when proposer and authorizer did not match + +- Updated dependencies [[`9a1eb2b3`](https://github.com/onflow/fcl-js/commit/9a1eb2b3dec369d4f35ec2aa8b753ec1230c0efe), [`9a1eb2b3`](https://github.com/onflow/fcl-js/commit/9a1eb2b3dec369d4f35ec2aa8b753ec1230c0efe), [`99e03af7`](https://github.com/onflow/fcl-js/commit/99e03af76e526593e5c989e43754ce23420e317f)]: + - @onflow/transport-http@1.5.0 + ## 1.1.2-alpha.1 ### Patch Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 6f8bd5170..c0ba0854f 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/sdk", - "version": "1.1.2-alpha.1", + "version": "1.1.2", "description": "Flow SDK", "license": "Apache-2.0", "author": "Dapper Labs ", @@ -21,7 +21,7 @@ } }, "devDependencies": { - "@onflow/fcl-bundle": "^1.2.0-alpha.0", + "@onflow/fcl-bundle": "^1.2.0", "jest": "^27.0.6", "jest-esm-transformer": "1.0.0" }, @@ -41,7 +41,7 @@ "@babel/runtime": "^7.18.6", "@onflow/config": "^1.0.3", "@onflow/rlp": "^1.0.2", - "@onflow/transport-http": "^1.5.0-alpha.1", + "@onflow/transport-http": "^1.5.0", "@onflow/util-actor": "^1.1.1", "@onflow/util-address": "^1.0.2", "@onflow/util-invariant": "^1.0.2", diff --git a/packages/transport-http/CHANGELOG.md b/packages/transport-http/CHANGELOG.md index 751604a16..b37f6efa8 100644 --- a/packages/transport-http/CHANGELOG.md +++ b/packages/transport-http/CHANGELOG.md @@ -1,5 +1,17 @@ # @onflow/transport-http +## 1.5.0 + +### Minor Changes + +- [#1362](https://github.com/onflow/fcl-js/pull/1362) [`9a1eb2b3`](https://github.com/onflow/fcl-js/commit/9a1eb2b3dec369d4f35ec2aa8b753ec1230c0efe) Thanks [@jribbink](https://github.com/jribbink)! - Retry 429 (Too many requests) responses which are used for access node rate limiting + +### Patch Changes + +- [#1362](https://github.com/onflow/fcl-js/pull/1362) [`9a1eb2b3`](https://github.com/onflow/fcl-js/commit/9a1eb2b3dec369d4f35ec2aa8b753ec1230c0efe) Thanks [@jribbink](https://github.com/jribbink)! - Catch JSON error when response body is empty + +* [#1339](https://github.com/onflow/fcl-js/pull/1339) [`99e03af7`](https://github.com/onflow/fcl-js/commit/99e03af76e526593e5c989e43754ce23420e317f) Thanks [@jribbink](https://github.com/jribbink)! - Ensure that acct.tempId is always created withPrefix + ## 1.5.0-alpha.1 ### Minor Changes diff --git a/packages/transport-http/package.json b/packages/transport-http/package.json index 3b07d084f..87bf07594 100644 --- a/packages/transport-http/package.json +++ b/packages/transport-http/package.json @@ -1,6 +1,6 @@ { "name": "@onflow/transport-http", - "version": "1.5.0-alpha.1", + "version": "1.5.0", "description": "Flow SDK HTTP Transport Module", "license": "Apache-2.0", "author": "Dapper Labs ", @@ -18,7 +18,7 @@ } }, "devDependencies": { - "@onflow/fcl-bundle": "^1.2.0-alpha.0", + "@onflow/fcl-bundle": "^1.2.0", "@onflow/rlp": "^1.0.2", "@onflow/types": "^1.0.3", "jest": "^27.0.6",