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