Skip to content

Conversation

nick-gudumac
Copy link

snyk-top-banner

Snyk has created this PR to upgrade @webview-bridge/react-native from 1.4.0 to 1.7.5.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 27 versions ahead of your current version.

  • The recommended version was released 3 months ago.

Release notes
Package name: @webview-bridge/react-native
  • 1.7.5 - 2024-12-11

    What's Changed

    Full Changelog: v1.7.4...v1.7.5

  • 1.7.4 - 2024-12-08

    What's Changed

    Full Changelog: v1.7.3...v1.7.4

  • 1.7.3 - 2024-12-07

    Caution

    This patch contains a breaking change due to the modification of the @ webview-bridge/web communication method. Ensure @ webview-bridge/react-nativeexplicitly uses version 1.7.3 to avoid potential issues.

    The compatibility layer has been added in version 1.7.4, resolving the issue.
    Please use version 1.7.4.

    What's Changed

    Full Changelog: v1.7.2...v1.7.3

  • 1.7.2 - 2024-11-04

    What's Changed

    • fix: correct module and main entry points in package.json @ gronxb 79510ad

    Full Changelog: v1.7.1...v1.7.2

  • 1.7.1 - 2024-10-28

    Guide

    https://gronxb.github.io/webview-bridge/using-a-post-message.html#broadcast

    What's Changed

    • feat(react-native): postMessage broadcast options by @ gronxb in #75

    Full Changelog: v1.7.0...v1.7.1

  • 1.7.0 - 2024-10-26

    Migration Guide

    The postMessage structure was limited to only zod, yup, and superstruct, making it incompatible with various schema libraries.

    Therefore, I separated this layer as validate, allowing integration with any schema library.

    https://gronxb.github.io/webview-bridge/using-a-post-message.html

    • as-is
    const appPostMessageSchema = postMessageSchema({
      eventName1: z.object({
        message: z.string(),
      }),
      eventName2: z.string(),
    });
    • to-be
    const appPostMessageSchema = postMessageSchema({
      eventName1: {
        validate: (data) => z.object({
          message: z.string(),
        }).parse(data)
      },
      eventName2: {
        validate: (data) => z.string().parse(data);
      },
    });

    What's Changed

    • chore(example): bump react native 0.76.0 by @ gronxb in #68
    • chore: deprecated @ webview-bridge/vue by @ gronxb in #69
    • feat(react-native): post message dynamic validate by @ gronxb in #70
    • chore: migrate tspc, esbuild to tsup, nx by @ gronxb in #71
    • chore: build:dev command by @ gronxb in #72
    • chore: bump react 18.3.1 by @ gronxb in #73
    • fix: resolution @ webview-bridge/utils by @ gronxb in #74

    Full Changelog: v1.6.2...v1.7.0

  • 1.7.0-rc.1 - 2024-10-26
  • 1.7.0-rc.0 - 2024-10-26
  • 1.6.2 - 2024-07-11

    What's Changed

    Full Changelog: v1.6.1...v1.6.2

  • 1.6.1 - 2024-07-11

    What's Changed

    • fix: ensure hydration in SSR environment by @ gronxb in #59

    Full Changelog: v1.6.0...v1.6.1

  • 1.6.0 - 2024-07-10

    What's Changed

    • feat: initialBridge mock by @ gronxb in #56
    • chore: remove deprecated linkNativeMethod by @ gronxb in #57
    • fix: resolve this binding issue in bridge instance by @ gronxb in #58

    initialBridge field

    https://gronxb.github.io/webview-bridge/non-react-native-environment.html

    It is possible to configure initialBridge to operate in a non-React Native environment.
    Prioritize applying the bridge of the React Native WebView, and if it is unavailable, apply the initialBridge.
    Therefore, if initialBridge is configured, bridge.isWebViewBridgeAvailable should be true even in environments that are not React Native.

    const bridge = linkBridge<AppBridge>({
      // this field
      initialBridge: {
        count: 0,
        data: {
          text: "123454",
        },
        openInAppBrowser: async () => {
          alert("openInAppBrowser not supported");
        },
        increase: async () => {
          alert("increase not supported");
        },
        setDataText: async (text) => {
          alert("setDataText not supported");
        },
      },
      onReady: () => {
        console.log("nativeMethod is ready");
      },
      throwOnError: true,
    }

    Full Changelog: v1.5.3...v1.6.0

  • 1.5.3 - 2024-07-09

    What's Changed

    • fix: mock store for non-native environment (SSR) by @ gronxb in #55

    Full Changelog: v1.5.2...v1.5.3

  • 1.5.2 - 2024-07-03
  • 1.5.1 - 2024-06-30
  • 1.5.1-rc.2 - 2024-06-30
  • 1.5.0 - 2024-06-25
  • 1.5.0-rc.1 - 2024-06-25
  • 1.4.7 - 2024-06-25
  • 1.4.6 - 2024-06-24
  • 1.4.6-nightly.0 - 2024-06-24
  • 1.4.5 - 2024-06-19
  • 1.4.4 - 2024-06-19
  • 1.4.3 - 2024-05-12
  • 1.4.3-nightly.0 - 2024-05-12
  • 1.4.2 - 2024-04-28
  • 1.4.1 - 2024-04-20
  • 1.4.1-nightly.0 - 2024-04-20
  • 1.4.0 - 2024-03-24
from @webview-bridge/react-native GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade @webview-bridge/react-native from 1.4.0 to 1.7.5.

See this package in npm:
@webview-bridge/react-native

See this project in Snyk:
https://app.snyk.io/org/nick-gudumac/project/5fe8d9ef-9d04-4737-8a7d-38ff93db5651?utm_source=github&utm_medium=referral&page=upgrade-pr
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