What's Changed
Key changes
Features
- Docs for Synchronizable, new memory type https://docs.swmansion.com/react-native-worklets/docs/memory/synchronizable
- feat(Worklets): Synchronizable docs by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8640
- New API to register custom serializable types, support for nitro::HybridObject https://docs.swmansion.com/react-native-worklets/docs/memory/registerCustomSerializable
- feat(Worklets): custom serialization support by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8600
- Optimized web bundle size with platform-specific file extensions.
- feat(Worklets): use .native.ts suffix for native-only files and .ts for web-only files by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8371
- New C++ API to get WorkletRuntime instance from its
jsi::Runtime. - feat(Worklets): obtain WorkletRuntime with getRuntimeData by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8444
- New C++ APIs for scheduling on WorkletRuntime
- feat(Worklets): Worklet Runtime C++ scheduling API by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8456
- TypeScript types for options of Worklets Babel Plugin https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#how-to-use
- feat(Worklets): expose plugin options type by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8632
- Added public mocks for Jest testing
- feat(Worklets): mock implementation for Jest by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8465
Breaking
- fix(Worklets): runOnUIAsync signature by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8470
- refactor(Worklets): remove public header dir by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8678
Other changes
- chore(Worklets): bump Bundle Mode patches by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8310
- chore(Worklets): fix PlatformChecker init by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8300
- feat(Worklets): simpler Bundle Mode by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8293
- fix(Worklets): Bundle Mode accidentally toggling in Expo54 by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8335
- fix(Worklets): re-workletizing in bundle mode by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8428
- refactor(Worklets): RuntimeBindings by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8409
- chore: Remove
ReanimatedErrorandWorkletsErrorfrom global types by @MatiPl01 in https://github.com/software-mansion/react-native-reanimated/pull/8435 - chore(docs): rename reanimated to worklets babel plugin by @maciekstosio in https://github.com/software-mansion/react-native-reanimated/pull/8449
- refactor(Worklets): swap scheduleOn and runOn implementations by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8452
- chore(Worklets): remove runtime-string association from RuntimeManager by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8443
- feat(Worklets): add deprecation sidebar label by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8468
- chore(Worklets): fix use of resolveWeak for Bundle Mode by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8490
- fix(worklets-docs):
og-imagesgeneration by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8495 - chore(Worklets): swap runOnRuntime and scheduleOnRuntime impl by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8494
- fix(Worklets): fix version script by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8503
- fix(Worklets): missing REACT_NATIVE_MINOR_VERSION on iOS by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8516
- chore(Worklets): replace deprecated BigStringBuffer with JSBigString by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8601
- Revert worklets visibility changes (from #8408) by @wisniewskij in https://github.com/software-mansion/react-native-reanimated/pull/8608
- feat(worklets): adjust the view of the video promoting worklets by @skusnierz in https://github.com/software-mansion/react-native-reanimated/pull/8611
- feat(Worklets): use int64 for BigInt when possible by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8557
- fix(Worklets): strip RN Runtime assertions only for other runtimes by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8531
- chore(Worklets): rename plugin opts by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8630
- Configure OIDC in nightly publish action for worklets by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/8654
- Bump setup-node action and node versions for worklets publishing by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/8660
- chore(Worklets): AvailableFrom label in docs by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8669
- feat(Worklets): allow disabling worklet classes by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8634
- feat(Worklets): docs for registerCustomSerializable by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8668
- docs(Worklets): Swizzle Paginator and TOC from
t-rex-uiby @patrycjakalinska in https://github.com/software-mansion/react-native-reanimated/pull/8674 - refactor(Worklets): remove public header dir by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8678
- fix(Worklets): prefab cache issue for prefab consumers by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/8684
New Contributors
- @joshkeldam made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8346
- @Elham13 made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8347
- @pawicao made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8415
- @wisniewskij made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8439
- @alexphl made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8591
- @flexbox made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/8692
Full Changelog: https://github.com/software-mansion/react-native-reanimated/compare/worklets-0.6.1...worklets-0.7.1
Release card