In this article
Key changes
- Added an option to pass custom AsyncQueue to a WorkletRuntime
- feat(Worklets): make AsyncQueue virtual and public by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7886
- feat(Worklets): allow passing user-implemented AsyncQueue to createWorkletRuntime by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7851
- Introduced getRuntimeKind to replace deprecated _WORKLET API
- feat(Worklets): replace
_WORKLETwithgetRuntimeKindand__RUNTIME_KINDby @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7641 - docs(Worklets): getRuntimeKind by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8051
- Introduced scheduleOnRN to replace deprecated runOnJS
- feat:
scheduleOnRNby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8050 - feat:
scheduleOnRNdocs by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8058 - Introduced Synchronizable concept
- feat(Worklets): Synchronizable by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7304
- Introduced runOnUISync to replace deprecated executeOnUIRuntimeSync.
- feat:
runOnUISyncby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8075 - Introduced formal event loop on Worklet Runtimes
- Event loop for worklet runtimes by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/7928
- Introduced scheduleOnUI to replace deprecated runOnUI
- feat(Worklets):
scheduleOnUIby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8124 - Renamed Shareable concept to Serializable and migrated it to use jsi::NativeState
- feat(Worklets): update
Shareableimplementation to usenativeStateinstead ofHostObjectby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/7843 - feat:
Serializabledocs by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8043 - Added Bundle Mode support for React Native 0.81
- chore(Worklets): BundleMode patches for 0.81 by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8086
- New docs
- feat(Worklets): new docs design by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8090
What's Changed
- refactor(Worklets): Rename
ShareabletoSerializable- part 1 by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/7845 - feat(Worklets): update
Shareableimplementation to usenativeStateinstead ofHostObjectby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/7843 - chore: bump Reanimated and Worklets in docs by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7868
- Remove native view export by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/7893
- feat(Worklets): make AsyncQueue virtual and public by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7886
- feat(Worklets): Update interface of the
createWorkletRuntimefunction by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/7894 - fix(Worklets): _$$_IMPORT_ALL identifier clash in some web setups by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7900
- refactor(Worklets): extract RuntimeData file by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7905
- refactor(Worklets): remove supportsLocking parameter from Worklet Runtimes by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7904
- chore(Worklets): update compat table post 0.4.1 release by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7937
- feat(Worklets): allow passing user-implemented AsyncQueue to createWorkletRuntime by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7851
- feat(Worklets): runAsyncGuardedOnUI by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7906
- feat(Worklets): obtain WorkletRuntime from runtime address by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7911
- feat: Support for SVG circle base props by @MatiPl01 in https://github.com/software-mansion/react-native-reanimated/pull/7750
- refactor(Worklets): rename
ShareabletoSerializable- part 2 by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/7863 - chore(Worklets): add Bundle Mode nightly CI by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8037
- feat: rename
makeShareableCloneRecursivetocreateSerializableinternally by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8018 - chore: add Bundle Mode CI label to README by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8047
- refactor(Worklets): hide worklet caches by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7965
- feat: rename files which includes
ShareabletoSerializableby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8042 - chore(Worklets): generalize scripts for more unpackers by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7966
- fix: Missing serializable runtime tests file crash by @MatiPl01 in https://github.com/software-mansion/react-native-reanimated/pull/8054
- feat:
Serializabledocs by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8043 - feat(Worklets): replace
_WORKLETwithgetRuntimeKindand__RUNTIME_KINDby @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7641 - docs(Worklets): getRuntimeKind by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8051
- feat:
scheduleOnRNby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8050 - feat(Worklets): Synchronizable by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/7304
- feat:
scheduleOnRNdocs by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8058 - fix(Worklets):
scheduleOnRNtests by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8085 - feat:
runOnUISyncby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8075 - chore(Worklets): BundleMode patches for 0.81 by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8086
- fix(Worklets): file name typo by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8107
- [ios][worklets] add explicit dependency on React-hermes by @chrfalch in https://github.com/software-mansion/react-native-reanimated/pull/8120
- feat: get static feature flags in JS by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8096
- Fix static feature flags resolution on iOS by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/8130
- feat(Worklets): new docs design by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8090
- Event loop for worklet runtimes by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/7928
- Fix worklets version checking in runtime by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/8146
- fix(Worklets): podspec typo by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8147
- feat(Worklets): update
getting-starteddocs page by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8139 - chore(Worklets): common compatibility source for docs and CI by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8068
- Event Loop for worklet runtimes - tests by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/8055
- Event Loop for worklet runtimes - rename test files by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/8064
- chore(Worklets): docs improvements by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8141
- feat(Worklets):
scheduleOnUIby @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8124 - chore(Worklets): temporary API for audio api integration by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8158
- chore(Worklets): add missing tvos detection by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8169
- release(Worklets): 0.5.0 by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8173
New Contributors
- @sleez007 made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/7885
- @soaple made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/7882
- @mhawryluk made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/7940
- @christophpurrer made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/7926
- @zhouzh1 made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/7953
- @RodolfoSilva made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8078
- @Phil9l made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8093
Full Changelog: https://github.com/software-mansion/react-native-reanimated/compare/worklets-0.4.0...worklets-0.5.0
Release card