diff --git a/.changeset/dependabot-pr-1013.md b/.changeset/dependabot-pr-1013.md new file mode 100644 index 000000000..458f9794e --- /dev/null +++ b/.changeset/dependabot-pr-1013.md @@ -0,0 +1,17 @@ +--- +"@knocklabs/react-native": minor +"@knocklabs/expo": minor +--- + +chore(deps): bump react-native-get-random-values from 1.11.0 to 2.0.0 + +v2 of the polyfill is new architecture only and requires React Native >= 0.81 +(Expo SDK >= 54). `@knocklabs/react-native` imports it for its side effects from +`src/index.ts`, so that floor now applies to every consumer of the package, and +to `@knocklabs/expo` by way of its dependency on `@knocklabs/react-native`. + +The `react-native` peer range on both packages has been narrowed from `*` to +`>=0.81`, so installs on unsupported versions surface a peer warning instead of +failing at runtime when the native module is missing. Expo SDK 54 is the release +that ships React Native 0.81, so the `expo` peer stays at `*` and the +`react-native` constraint covers both. diff --git a/packages/expo/package.json b/packages/expo/package.json index 838277d99..2c3801d97 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -49,7 +49,7 @@ "expo-device": "*", "expo-notifications": "*", "react": "*", - "react-native": "*", + "react-native": ">=0.81", "react-native-gesture-handler": ">=2.0.0" }, "dependencies": { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 620096c62..18c6d8f66 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -43,13 +43,13 @@ }, "peerDependencies": { "react": "*", - "react-native": "*", + "react-native": ">=0.81", "react-native-gesture-handler": ">=2.0.0" }, "dependencies": { "@knocklabs/client": "workspace:^", "@knocklabs/react-core": "workspace:^", - "react-native-get-random-values": "^1.11.0", + "react-native-get-random-values": "^2.0.0", "react-native-render-html": "^6.3.4", "react-native-svg": "~15.15.3" }, diff --git a/yarn.lock b/yarn.lock index 40dcab023..0eed5591d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5068,7 +5068,7 @@ __metadata: expo-device: "*" expo-notifications: "*" react: "*" - react-native: "*" + react-native: ">=0.81" react-native-gesture-handler: ">=2.0.0" languageName: unknown linkType: soft @@ -5177,7 +5177,7 @@ __metadata: react-dom: "npm:^19.2.7" react-native: "npm:^0.85.3" react-native-gesture-handler: "npm:~2.30.0" - react-native-get-random-values: "npm:^1.11.0" + react-native-get-random-values: "npm:^2.0.0" react-native-render-html: "npm:^6.3.4" react-native-svg: "npm:~15.15.3" rimraf: "npm:^6.0.1" @@ -5187,7 +5187,7 @@ __metadata: vite-plugin-no-bundle: "npm:^4.0.0" peerDependencies: react: "*" - react-native: "*" + react-native: ">=0.81" react-native-gesture-handler: ">=2.0.0" languageName: unknown linkType: soft @@ -18311,14 +18311,14 @@ __metadata: languageName: node linkType: hard -"react-native-get-random-values@npm:^1.11.0": - version: 1.11.0 - resolution: "react-native-get-random-values@npm:1.11.0" +"react-native-get-random-values@npm:^2.0.0": + version: 2.0.0 + resolution: "react-native-get-random-values@npm:2.0.0" dependencies: fast-base64-decode: "npm:^1.0.0" peerDependencies: - react-native: ">=0.56" - checksum: 10c0/2ce71f1ab7f5b36d4a9dd59cc80b4aa75526f047c6680a7f1a388fa8b9a62efdacaf7b7de3be593c73e882773b2eee74916b00f7c8b158e40b46388998218586 + react-native: ">=0.81" + checksum: 10c0/fd2e10ab3bca54bff8f5844e3314b797e02822e86663bc2dafe00a511b8a8e1c05d96aa0b8dc1ffad428387d44bbf458ce770a429858433d36f58a16e6e52986 languageName: node linkType: hard