Skip to content

Commit 32242f5

Browse files
raxodusclaude
andcommitted
fix(worklets): align jsVersion constant with published exodus version
Read jsVersion from the package's own package.json so it stays in sync with the published `@exodus/react-native-worklets` fork version. The runtime asserts the JS-side jsVersion matches the babel plugin's REAL_VERSION at startup; previously the constant was hard-coded at upstream `0.9.0-main` while the fork is published at `0.9.0-exodus.X`, throwing WorkletsError at startup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 65854cd commit 32242f5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'use strict';
22

3+
import { version } from '../../package.json';
4+
35
/**
46
* We hardcode the version of Worklets here in order to compare it with the
57
* version used to build the native part of the library in runtime. Remember to
68
* keep this in sync with the version declared in `package.json`
79
*/
8-
export const jsVersion = '0.9.0-main';
10+
export const jsVersion = version;

0 commit comments

Comments
 (0)