Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #1418

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Version Packages #1418

merged 1 commit into from
Sep 26, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 19, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@onflow/fcl@1.3.0

Minor Changes

Patch Changes

@onflow/fcl-bundle@1.2.0

Minor Changes

Patch Changes

  • #1366 ec6f6a65 Thanks @jribbink! - Set inlineDynamicImports to true as dynamic imports would cause build to fail

@onflow/fcl-wc@1.0.0

Minor Changes

  • #1352 e33fa8df Thanks @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.

    import {config} from '@onflow/config'
    
    config({
        flow.network: 'testnet'
    })
    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

    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 8475d5a4 Thanks @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 27bc599c Thanks @gregsantos! - Update request types and make wallets from WalletConnect API opt-in

  • #1396 8475d5a4 Thanks @gregsantos! - Updates ServicePlugin spec to include serviceStrategy

  • #1411 3c7a1bd6 Thanks @gregsantos! - Adds additional options to init for pairingModalOverride and wcRequestHook

    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)
    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, 2a5fa910, 9ea98850, e33fa8df, 3fdcc3be, 6708494d, 15d77220, f14b730c, 0a9c9677, 17a7f1e4, 5e6d114a, ecbd77b2, 75d06938, 8475d5a4, 1982c00b, f9f1dab7]:

    • @onflow/fcl@1.3.0

@onflow/transport-http@1.5.0

Minor Changes

  • #1362 9a1eb2b3 Thanks @jribbink! - Retry 429 (Too many requests) responses which are used for access node rate limiting

Patch Changes

@onflow/sdk@1.1.2

Patch Changes

  • #1339 99e03af7 Thanks @jribbink! - Fix erroneous sansPrefix requirement for acct.addr in authorization function which occured when proposer and authorizer did not match

  • Updated dependencies [9a1eb2b3, 9a1eb2b3, 99e03af7]:

    • @onflow/transport-http@1.5.0

@github-actions github-actions bot requested a review from a team as a code owner September 19, 2022 23:17
@github-actions github-actions bot force-pushed the changeset-release/master branch 5 times, most recently from d2d6fbc to afbee61 Compare September 26, 2022 19:35
@github-actions github-actions bot changed the title Version Packages (alpha) Version Packages Sep 26, 2022
@github-actions github-actions bot force-pushed the changeset-release/master branch from afbee61 to 618a949 Compare September 26, 2022 19:38
Copy link
Contributor

@justinbarry justinbarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@justinbarry justinbarry merged commit 7c14a3e into master Sep 26, 2022
@justinbarry justinbarry deleted the changeset-release/master branch September 26, 2022 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants