Skip to content

fix: restore react-native-worklets as an optional peer dep#1037

Open
shubh73 wants to merge 2 commits intosoftware-mansion:mainfrom
shubh73:fix/restore-worklets-optional-peer-dep
Open

fix: restore react-native-worklets as an optional peer dep#1037
shubh73 wants to merge 2 commits intosoftware-mansion:mainfrom
shubh73:fix/restore-worklets-optional-peer-dep

Conversation

@shubh73
Copy link
Copy Markdown
Contributor

@shubh73 shubh73 commented Apr 23, 2026

⚠️ Breaking changes ⚠️

None at runtime.

This does slightly change install-time signaling: package managers may now show an advisory optional-peer message when react-native-worklets is not installed directly. That matches react-native-audio-api in v0.10.1.

Introduced changes

  • restore react-native-worklets as an optional peer dependency with version range >= 0.6.0
  • fix a typo in scripts/validate-worklets-version.js where the warning referenced react-native-audio-worklets instead of react-native-worklets

Why

The iOS podspec still requires RNWorklets whenever node can resolve react-native-worklets.

But CocoaPods autolinking only sees packages declared directly in the consumer app. So when react-native-worklets is only present transitively (for example via pressto), consumers can hit:

Unable to find a specification for RNWorklets

during pod install, with no package-level hint that react-native-worklets is expected as a direct dependency.

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

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.

1 participant