Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ describe('react-native-worklets peer range', () => {
expect(satisfies(installed.version, range)).toBe(true);
});

it('is also declared as our own react-native peer (#1623)', () => {
// Without it an older app fails on worklets' peer instead, and the error
// never names this package or its floor.
const rnRange: string = manifest.peerDependencies['react-native'];
expect(minVersion(rnRange)!.version).toBe('0.83.0');
expect(satisfies('0.82.1', rnRange)).toBe(false);
expect(satisfies('0.88.1', rnRange)).toBe(true);
});

it('matches the React Native floor the docs promise', () => {
// Worklets declares which React Native versions it accepts; ours cannot be
// lower than what the oldest worklets we allow will run on. That is
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-executorch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"peerDependencies": {
"@kesha-antonov/react-native-background-downloader": ">=4.4.0",
"react": "*",
"react-native": "*",
"react-native": ">=0.83.0",
"react-native-blob-util": ">=0.24.11",
"react-native-worklets": ">=0.10.0 <0.14.0"
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13004,7 +13004,7 @@ __metadata:
peerDependencies:
"@kesha-antonov/react-native-background-downloader": ">=4.4.0"
react: "*"
react-native: "*"
react-native: ">=0.83.0"
react-native-blob-util: ">=0.24.11"
react-native-worklets: ">=0.10.0 <0.14.0"
peerDependenciesMeta:
Expand Down
Loading