@depup/react-native-worklets 0.11.3-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.worklets/dummy.md +1 -0
- package/Common/cpp/worklets/AnimationFrameQueue/AnimationFrameBatchinator.cpp +64 -0
- package/Common/cpp/worklets/AnimationFrameQueue/AnimationFrameBatchinator.h +38 -0
- package/Common/cpp/worklets/Compat/Holders.h +25 -0
- package/Common/cpp/worklets/Compat/StableApi.cpp +145 -0
- package/Common/cpp/worklets/Compat/StableApi.h +128 -0
- package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.cpp +729 -0
- package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.h +126 -0
- package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.cpp +81 -0
- package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.h +76 -0
- package/Common/cpp/worklets/Registries/EventHandlerRegistry.cpp +95 -0
- package/Common/cpp/worklets/Registries/EventHandlerRegistry.h +44 -0
- package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp +10 -0
- package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.h +43 -0
- package/Common/cpp/worklets/RunLoop/AsyncQueue.h +14 -0
- package/Common/cpp/worklets/RunLoop/AsyncQueueImpl.cpp +69 -0
- package/Common/cpp/worklets/RunLoop/AsyncQueueImpl.h +48 -0
- package/Common/cpp/worklets/RunLoop/EventLoop.cpp +103 -0
- package/Common/cpp/worklets/RunLoop/EventLoop.h +52 -0
- package/Common/cpp/worklets/SharedItems/MemoryManager.cpp +60 -0
- package/Common/cpp/worklets/SharedItems/MemoryManager.h +29 -0
- package/Common/cpp/worklets/SharedItems/Serializable.cpp +373 -0
- package/Common/cpp/worklets/SharedItems/Serializable.h +413 -0
- package/Common/cpp/worklets/SharedItems/SerializableFactory.cpp +172 -0
- package/Common/cpp/worklets/SharedItems/SerializableFactory.h +85 -0
- package/Common/cpp/worklets/SharedItems/SerializableRemoteFunction.cpp +71 -0
- package/Common/cpp/worklets/SharedItems/SerializableRemoteFunction.h +75 -0
- package/Common/cpp/worklets/SharedItems/Shareable.cpp +84 -0
- package/Common/cpp/worklets/SharedItems/Shareable.h +43 -0
- package/Common/cpp/worklets/SharedItems/Synchronizable.cpp +59 -0
- package/Common/cpp/worklets/SharedItems/Synchronizable.h +57 -0
- package/Common/cpp/worklets/SharedItems/SynchronizableAccess.cpp +78 -0
- package/Common/cpp/worklets/SharedItems/SynchronizableAccess.h +45 -0
- package/Common/cpp/worklets/SharedItems/UnpackerLoader.h +78 -0
- package/Common/cpp/worklets/Tools/FeatureFlags.cpp +18 -0
- package/Common/cpp/worklets/Tools/FeatureFlags.h +44 -0
- package/Common/cpp/worklets/Tools/JSISerializer.cpp +312 -0
- package/Common/cpp/worklets/Tools/JSISerializer.h +42 -0
- package/Common/cpp/worklets/Tools/JSLogger.cpp +92 -0
- package/Common/cpp/worklets/Tools/JSLogger.h +48 -0
- package/Common/cpp/worklets/Tools/JSScheduler.cpp +21 -0
- package/Common/cpp/worklets/Tools/JSScheduler.h +35 -0
- package/Common/cpp/worklets/Tools/PlatformLogger.h +16 -0
- package/Common/cpp/worklets/Tools/RNRuntimeStatus.h +27 -0
- package/Common/cpp/worklets/Tools/ScriptBuffer.h +56 -0
- package/Common/cpp/worklets/Tools/SingleInstanceChecker.h +75 -0
- package/Common/cpp/worklets/Tools/ThreadSafeQueue.h +49 -0
- package/Common/cpp/worklets/Tools/UIScheduler.cpp +19 -0
- package/Common/cpp/worklets/Tools/UIScheduler.h +22 -0
- package/Common/cpp/worklets/Tools/VersionUtils.cpp +61 -0
- package/Common/cpp/worklets/Tools/VersionUtils.h +24 -0
- package/Common/cpp/worklets/Tools/WorkletEventHandler.cpp +34 -0
- package/Common/cpp/worklets/Tools/WorkletEventHandler.h +44 -0
- package/Common/cpp/worklets/Tools/WorkletsJSIUtils.cpp +30 -0
- package/Common/cpp/worklets/Tools/WorkletsJSIUtils.h +222 -0
- package/Common/cpp/worklets/Tools/WorkletsSystraceSection.h +116 -0
- package/Common/cpp/worklets/Tools/WorkletsVersion.cpp +46 -0
- package/Common/cpp/worklets/Tools/WorkletsVersion.h +18 -0
- package/Common/cpp/worklets/WorkletRuntime/BundleModeConfig.h +17 -0
- package/Common/cpp/worklets/WorkletRuntime/HermesProfiling.cpp +45 -0
- package/Common/cpp/worklets/WorkletRuntime/HermesProfiling.h +12 -0
- package/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.cpp +68 -0
- package/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.h +24 -0
- package/Common/cpp/worklets/WorkletRuntime/RuntimeBindings.h +59 -0
- package/Common/cpp/worklets/WorkletRuntime/RuntimeData.h +38 -0
- package/Common/cpp/worklets/WorkletRuntime/RuntimeHolder.h +19 -0
- package/Common/cpp/worklets/WorkletRuntime/RuntimeManager.cpp +122 -0
- package/Common/cpp/worklets/WorkletRuntime/RuntimeManager.h +75 -0
- package/Common/cpp/worklets/WorkletRuntime/ScriptLoader.h +116 -0
- package/Common/cpp/worklets/WorkletRuntime/UIRuntimeDecorator.cpp +14 -0
- package/Common/cpp/worklets/WorkletRuntime/UIRuntimeDecorator.h +15 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletHermesRuntime.cpp +58 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletHermesRuntime.h +100 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.cpp +327 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.h +256 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeCollector.h +36 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.cpp +320 -0
- package/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.h +36 -0
- package/LICENSE +20 -0
- package/README.md +43 -0
- package/RNWorklets.podspec +94 -0
- package/android/CMakeLists.txt +108 -0
- package/android/build.gradle.kts +369 -0
- package/android/fix-prefab.gradle.kts +56 -0
- package/android/generate-stub-pch.gradle.kts +84 -0
- package/android/gradle.properties +25 -0
- package/android/proguard-rules.pro +3 -0
- package/android/settings.gradle.kts +21 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/WorkletsPCH.h +26 -0
- package/android/src/main/cpp/worklets/android/AndroidUIScheduler.cpp +66 -0
- package/android/src/main/cpp/worklets/android/AndroidUIScheduler.h +38 -0
- package/android/src/main/cpp/worklets/android/AnimationFrameCallback.h +30 -0
- package/android/src/main/cpp/worklets/android/JScriptBufferWrapper.cpp +66 -0
- package/android/src/main/cpp/worklets/android/JScriptBufferWrapper.h +48 -0
- package/android/src/main/cpp/worklets/android/JWorkletRuntimeWrapper.cpp +51 -0
- package/android/src/main/cpp/worklets/android/JWorkletRuntimeWrapper.h +43 -0
- package/android/src/main/cpp/worklets/android/PlatformLogger.cpp +31 -0
- package/android/src/main/cpp/worklets/android/WorkletsModule.cpp +203 -0
- package/android/src/main/cpp/worklets/android/WorkletsModule.h +75 -0
- package/android/src/main/cpp/worklets/android/WorkletsOnLoad.cpp +19 -0
- package/android/src/main/java/com/swmansion/worklets/AndroidUIScheduler.kt +56 -0
- package/android/src/main/java/com/swmansion/worklets/ScriptBufferWrapper.kt +103 -0
- package/android/src/main/java/com/swmansion/worklets/WorkletsPackage.kt +42 -0
- package/android/src/main/java/com/swmansion/worklets/runloop/AnimationFrameCallback.kt +14 -0
- package/android/src/main/java/com/swmansion/worklets/runloop/AnimationFrameQueue.kt +112 -0
- package/android/src/networking/com/swmansion/worklets/WorkletRuntimeWrapper.kt +27 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsHeaderUtil.kt +30 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsModule.kt +187 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsNetworkEventUtil.kt +272 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsNetworking.kt +1124 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsOkHttpCallUtil.kt +40 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsProgressListener.kt +13 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsProgressRequestBody.kt +98 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsProgressResponseBody.kt +60 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsProgressiveStringDecoder.kt +87 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsRequestBodyUtil.kt +181 -0
- package/android/src/no-networking/com/swmansion/worklets/WorkletsModule.kt +143 -0
- package/apple/worklets/apple/AnimationFrameQueue.h +15 -0
- package/apple/worklets/apple/AnimationFrameQueue.mm +145 -0
- package/apple/worklets/apple/AssertJavaScriptQueue.h +14 -0
- package/apple/worklets/apple/AssertTurboModuleManagerQueue.h +12 -0
- package/apple/worklets/apple/IOSUIScheduler.h +14 -0
- package/apple/worklets/apple/IOSUIScheduler.mm +29 -0
- package/apple/worklets/apple/Networking/WorkletsNetworking.h +25 -0
- package/apple/worklets/apple/Networking/WorkletsNetworking.mm +707 -0
- package/apple/worklets/apple/PlatformLogger.mm +31 -0
- package/apple/worklets/apple/SlowAnimations.h +8 -0
- package/apple/worklets/apple/SlowAnimations.mm +45 -0
- package/apple/worklets/apple/WorkletsDisplayLink.h +21 -0
- package/apple/worklets/apple/WorkletsModule.h +28 -0
- package/apple/worklets/apple/WorkletsModule.mm +177 -0
- package/bundleMode/index.d.ts +6 -0
- package/bundleMode/index.js +182 -0
- package/bundleMode/shims/reactNativeShim.js +21 -0
- package/bundleMode/shims/turboModuleRegistryShim.js +47 -0
- package/changes.json +58 -0
- package/compatibility.json +29 -0
- package/jest/pluginTestUtils.ts +16 -0
- package/jest/resolver.js +18 -0
- package/lib/module/WorkletsModule/NativeWorklets.js +4 -0
- package/lib/module/WorkletsModule/NativeWorklets.js.map +1 -0
- package/lib/module/WorkletsModule/NativeWorklets.native.js +199 -0
- package/lib/module/WorkletsModule/NativeWorklets.native.js.map +1 -0
- package/lib/module/WorkletsModule/workletsModuleProxy.js +4 -0
- package/lib/module/WorkletsModule/workletsModuleProxy.js.map +1 -0
- package/lib/module/bundleMode/metroOverrides.native.js +26 -0
- package/lib/module/bundleMode/metroOverrides.native.js.map +1 -0
- package/lib/module/bundleMode/network.native.js +44 -0
- package/lib/module/bundleMode/network.native.js.map +1 -0
- package/lib/module/debug/bundleMode.js +6 -0
- package/lib/module/debug/bundleMode.js.map +1 -0
- package/lib/module/debug/bundleMode.native.js +11 -0
- package/lib/module/debug/bundleMode.native.js.map +1 -0
- package/lib/module/debug/checkCppVersion.js +29 -0
- package/lib/module/debug/checkCppVersion.js.map +1 -0
- package/lib/module/debug/errors.native.js +67 -0
- package/lib/module/debug/errors.native.js.map +1 -0
- package/lib/module/debug/jsVersion.js +9 -0
- package/lib/module/debug/jsVersion.js.map +1 -0
- package/lib/module/debug/logger.js +15 -0
- package/lib/module/debug/logger.js.map +1 -0
- package/lib/module/debug/slowAnimations.js +7 -0
- package/lib/module/debug/slowAnimations.js.map +1 -0
- package/lib/module/debug/slowAnimations.native.js +17 -0
- package/lib/module/debug/slowAnimations.native.js.map +1 -0
- package/lib/module/deprecated.js +27 -0
- package/lib/module/deprecated.js.map +1 -0
- package/lib/module/featureFlags/featureFlags.js +12 -0
- package/lib/module/featureFlags/featureFlags.js.map +1 -0
- package/lib/module/featureFlags/featureFlags.native.js +51 -0
- package/lib/module/featureFlags/featureFlags.native.js.map +1 -0
- package/lib/module/featureFlags/staticFlags.json +6 -0
- package/lib/module/featureFlags/types.js +16 -0
- package/lib/module/featureFlags/types.js.map +1 -0
- package/lib/module/guardImplementation.native.js +17 -0
- package/lib/module/guardImplementation.native.js.map +1 -0
- package/lib/module/index.js +26 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/initializers/initializers.js +24 -0
- package/lib/module/initializers/initializers.js.map +1 -0
- package/lib/module/initializers/initializers.native.js +195 -0
- package/lib/module/initializers/initializers.native.js.map +1 -0
- package/lib/module/memory/bundleUnpacker.native.js +38 -0
- package/lib/module/memory/bundleUnpacker.native.js.map +1 -0
- package/lib/module/memory/customSerializableUnpacker.native.js +20 -0
- package/lib/module/memory/customSerializableUnpacker.native.js.map +1 -0
- package/lib/module/memory/isShareable.js +8 -0
- package/lib/module/memory/isShareable.js.map +1 -0
- package/lib/module/memory/isSynchronizable.js +8 -0
- package/lib/module/memory/isSynchronizable.js.map +1 -0
- package/lib/module/memory/remoteFunctionUnpacker.native.js +18 -0
- package/lib/module/memory/remoteFunctionUnpacker.native.js.map +1 -0
- package/lib/module/memory/serializable.js +18 -0
- package/lib/module/memory/serializable.js.map +1 -0
- package/lib/module/memory/serializable.native.js +619 -0
- package/lib/module/memory/serializable.native.js.map +1 -0
- package/lib/module/memory/serializableMappingCache.js +11 -0
- package/lib/module/memory/serializableMappingCache.js.map +1 -0
- package/lib/module/memory/serializableMappingCache.native.js +29 -0
- package/lib/module/memory/serializableMappingCache.native.js.map +1 -0
- package/lib/module/memory/shareable.js +18 -0
- package/lib/module/memory/shareable.js.map +1 -0
- package/lib/module/memory/shareable.native.js +42 -0
- package/lib/module/memory/shareable.native.js.map +1 -0
- package/lib/module/memory/shareableGuestUnpacker.native.js +105 -0
- package/lib/module/memory/shareableGuestUnpacker.native.js.map +1 -0
- package/lib/module/memory/shareableHostUnpacker.native.js +20 -0
- package/lib/module/memory/shareableHostUnpacker.native.js.map +1 -0
- package/lib/module/memory/synchronizable.js +6 -0
- package/lib/module/memory/synchronizable.js.map +1 -0
- package/lib/module/memory/synchronizable.native.js +9 -0
- package/lib/module/memory/synchronizable.native.js.map +1 -0
- package/lib/module/memory/synchronizableUnpacker.native.js +47 -0
- package/lib/module/memory/synchronizableUnpacker.native.js.map +1 -0
- package/lib/module/memory/types.js +12 -0
- package/lib/module/memory/types.js.map +1 -0
- package/lib/module/memory/valueUnpacker.native.js +52 -0
- package/lib/module/memory/valueUnpacker.native.js.map +1 -0
- package/lib/module/mock.js +85 -0
- package/lib/module/mock.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/platformChecker.js +4 -0
- package/lib/module/platformChecker.js.map +1 -0
- package/lib/module/platformChecker.native.js +4 -0
- package/lib/module/platformChecker.native.js.map +1 -0
- package/lib/module/privateGlobals.d.js +7 -0
- package/lib/module/privateGlobals.d.js.map +1 -0
- package/lib/module/runLoop/common/setImmediatePolyfill.js +15 -0
- package/lib/module/runLoop/common/setImmediatePolyfill.js.map +1 -0
- package/lib/module/runLoop/common/setIntervalPolyfill.js +26 -0
- package/lib/module/runLoop/common/setIntervalPolyfill.js.map +1 -0
- package/lib/module/runLoop/uiRuntime/mockedRequestAnimationFrame.js +10 -0
- package/lib/module/runLoop/uiRuntime/mockedRequestAnimationFrame.js.map +1 -0
- package/lib/module/runLoop/uiRuntime/requestAnimationFrame.js +71 -0
- package/lib/module/runLoop/uiRuntime/requestAnimationFrame.js.map +1 -0
- package/lib/module/runLoop/uiRuntime/setTimeoutPolyfill.js +32 -0
- package/lib/module/runLoop/uiRuntime/setTimeoutPolyfill.js.map +1 -0
- package/lib/module/runLoop/workletRuntime/index.js +19 -0
- package/lib/module/runLoop/workletRuntime/index.js.map +1 -0
- package/lib/module/runLoop/workletRuntime/queueMicrotask.js +11 -0
- package/lib/module/runLoop/workletRuntime/queueMicrotask.js.map +1 -0
- package/lib/module/runLoop/workletRuntime/requestAnimationFramePolyfill.js +48 -0
- package/lib/module/runLoop/workletRuntime/requestAnimationFramePolyfill.js.map +1 -0
- package/lib/module/runLoop/workletRuntime/setTimeout.js +28 -0
- package/lib/module/runLoop/workletRuntime/setTimeout.js.map +1 -0
- package/lib/module/runLoop/workletRuntime/taskQueue.js +37 -0
- package/lib/module/runLoop/workletRuntime/taskQueue.js.map +1 -0
- package/lib/module/runtimeKind.js +92 -0
- package/lib/module/runtimeKind.js.map +1 -0
- package/lib/module/runtimes.js +36 -0
- package/lib/module/runtimes.js.map +1 -0
- package/lib/module/runtimes.native.js +379 -0
- package/lib/module/runtimes.native.js.map +1 -0
- package/lib/module/specs/NativeWorkletsModule.js +5 -0
- package/lib/module/specs/NativeWorkletsModule.js.map +1 -0
- package/lib/module/specs/index.js +10 -0
- package/lib/module/specs/index.js.map +1 -0
- package/lib/module/threads.js +60 -0
- package/lib/module/threads.js.map +1 -0
- package/lib/module/threads.native.js +295 -0
- package/lib/module/threads.native.js.map +1 -0
- package/lib/module/types.js +5 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/workletFunction.js +36 -0
- package/lib/module/workletFunction.js.map +1 -0
- package/lib/typescript/WorkletsModule/NativeWorklets.d.ts +3 -0
- package/lib/typescript/WorkletsModule/NativeWorklets.d.ts.map +1 -0
- package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts +3 -0
- package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts.map +1 -0
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts +59 -0
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts.map +1 -0
- package/lib/typescript/bundleMode/metroOverrides.native.d.ts +9 -0
- package/lib/typescript/bundleMode/metroOverrides.native.d.ts.map +1 -0
- package/lib/typescript/bundleMode/network.native.d.ts +7 -0
- package/lib/typescript/bundleMode/network.native.d.ts.map +1 -0
- package/lib/typescript/debug/bundleMode.d.ts +2 -0
- package/lib/typescript/debug/bundleMode.d.ts.map +1 -0
- package/lib/typescript/debug/bundleMode.native.d.ts +2 -0
- package/lib/typescript/debug/bundleMode.native.d.ts.map +1 -0
- package/lib/typescript/debug/checkCppVersion.d.ts +3 -0
- package/lib/typescript/debug/checkCppVersion.d.ts.map +1 -0
- package/lib/typescript/debug/errors.native.d.ts +13 -0
- package/lib/typescript/debug/errors.native.d.ts.map +1 -0
- package/lib/typescript/debug/jsVersion.d.ts +7 -0
- package/lib/typescript/debug/jsVersion.d.ts.map +1 -0
- package/lib/typescript/debug/logger.d.ts +5 -0
- package/lib/typescript/debug/logger.d.ts.map +1 -0
- package/lib/typescript/debug/slowAnimations.d.ts +2 -0
- package/lib/typescript/debug/slowAnimations.d.ts.map +1 -0
- package/lib/typescript/debug/slowAnimations.native.d.ts +11 -0
- package/lib/typescript/debug/slowAnimations.native.d.ts.map +1 -0
- package/lib/typescript/deprecated.d.ts +19 -0
- package/lib/typescript/deprecated.d.ts.map +1 -0
- package/lib/typescript/featureFlags/featureFlags.d.ts +5 -0
- package/lib/typescript/featureFlags/featureFlags.d.ts.map +1 -0
- package/lib/typescript/featureFlags/featureFlags.native.d.ts +6 -0
- package/lib/typescript/featureFlags/featureFlags.native.d.ts.map +1 -0
- package/lib/typescript/featureFlags/types.d.ts +23 -0
- package/lib/typescript/featureFlags/types.d.ts.map +1 -0
- package/lib/typescript/guardImplementation.native.d.ts +3 -0
- package/lib/typescript/guardImplementation.native.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +19 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/initializers/initializers.d.ts +2 -0
- package/lib/typescript/initializers/initializers.d.ts.map +1 -0
- package/lib/typescript/initializers/initializers.native.d.ts +19 -0
- package/lib/typescript/initializers/initializers.native.d.ts.map +1 -0
- package/lib/typescript/memory/bundleUnpacker.native.d.ts +7 -0
- package/lib/typescript/memory/bundleUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/customSerializableUnpacker.native.d.ts +3 -0
- package/lib/typescript/memory/customSerializableUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/isShareable.d.ts +3 -0
- package/lib/typescript/memory/isShareable.d.ts.map +1 -0
- package/lib/typescript/memory/isSynchronizable.d.ts +3 -0
- package/lib/typescript/memory/isSynchronizable.d.ts.map +1 -0
- package/lib/typescript/memory/remoteFunctionUnpacker.native.d.ts +3 -0
- package/lib/typescript/memory/remoteFunctionUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/serializable.d.ts +7 -0
- package/lib/typescript/memory/serializable.d.ts.map +1 -0
- package/lib/typescript/memory/serializable.native.d.ts +37 -0
- package/lib/typescript/memory/serializable.native.d.ts.map +1 -0
- package/lib/typescript/memory/serializableMappingCache.d.ts +6 -0
- package/lib/typescript/memory/serializableMappingCache.d.ts.map +1 -0
- package/lib/typescript/memory/serializableMappingCache.native.d.ts +13 -0
- package/lib/typescript/memory/serializableMappingCache.native.d.ts.map +1 -0
- package/lib/typescript/memory/shareable.d.ts +15 -0
- package/lib/typescript/memory/shareable.d.ts.map +1 -0
- package/lib/typescript/memory/shareable.native.d.ts +15 -0
- package/lib/typescript/memory/shareable.native.d.ts.map +1 -0
- package/lib/typescript/memory/shareableGuestUnpacker.native.d.ts +4 -0
- package/lib/typescript/memory/shareableGuestUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/shareableHostUnpacker.native.d.ts +4 -0
- package/lib/typescript/memory/shareableHostUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/synchronizable.d.ts +3 -0
- package/lib/typescript/memory/synchronizable.d.ts.map +1 -0
- package/lib/typescript/memory/synchronizable.native.d.ts +3 -0
- package/lib/typescript/memory/synchronizable.native.d.ts.map +1 -0
- package/lib/typescript/memory/synchronizableUnpacker.native.d.ts +4 -0
- package/lib/typescript/memory/synchronizableUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/memory/types.d.ts +136 -0
- package/lib/typescript/memory/types.d.ts.map +1 -0
- package/lib/typescript/memory/valueUnpacker.native.d.ts +7 -0
- package/lib/typescript/memory/valueUnpacker.native.d.ts.map +1 -0
- package/lib/typescript/mock.d.ts +2 -0
- package/lib/typescript/mock.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/platformChecker.d.ts +2 -0
- package/lib/typescript/platformChecker.d.ts.map +1 -0
- package/lib/typescript/platformChecker.native.d.ts +2 -0
- package/lib/typescript/platformChecker.native.d.ts.map +1 -0
- package/lib/typescript/runLoop/common/setImmediatePolyfill.d.ts +2 -0
- package/lib/typescript/runLoop/common/setImmediatePolyfill.d.ts.map +1 -0
- package/lib/typescript/runLoop/common/setIntervalPolyfill.d.ts +2 -0
- package/lib/typescript/runLoop/common/setIntervalPolyfill.d.ts.map +1 -0
- package/lib/typescript/runLoop/uiRuntime/mockedRequestAnimationFrame.d.ts +6 -0
- package/lib/typescript/runLoop/uiRuntime/mockedRequestAnimationFrame.d.ts.map +1 -0
- package/lib/typescript/runLoop/uiRuntime/requestAnimationFrame.d.ts +2 -0
- package/lib/typescript/runLoop/uiRuntime/requestAnimationFrame.d.ts.map +1 -0
- package/lib/typescript/runLoop/uiRuntime/setTimeoutPolyfill.d.ts +2 -0
- package/lib/typescript/runLoop/uiRuntime/setTimeoutPolyfill.d.ts.map +1 -0
- package/lib/typescript/runLoop/workletRuntime/index.d.ts +2 -0
- package/lib/typescript/runLoop/workletRuntime/index.d.ts.map +1 -0
- package/lib/typescript/runLoop/workletRuntime/queueMicrotask.d.ts +2 -0
- package/lib/typescript/runLoop/workletRuntime/queueMicrotask.d.ts.map +1 -0
- package/lib/typescript/runLoop/workletRuntime/requestAnimationFramePolyfill.d.ts +2 -0
- package/lib/typescript/runLoop/workletRuntime/requestAnimationFramePolyfill.d.ts.map +1 -0
- package/lib/typescript/runLoop/workletRuntime/setTimeout.d.ts +2 -0
- package/lib/typescript/runLoop/workletRuntime/setTimeout.d.ts.map +1 -0
- package/lib/typescript/runLoop/workletRuntime/taskQueue.d.ts +10 -0
- package/lib/typescript/runLoop/workletRuntime/taskQueue.d.ts.map +1 -0
- package/lib/typescript/runtimeKind.d.ts +56 -0
- package/lib/typescript/runtimeKind.d.ts.map +1 -0
- package/lib/typescript/runtimes.d.ts +15 -0
- package/lib/typescript/runtimes.d.ts.map +1 -0
- package/lib/typescript/runtimes.native.d.ts +155 -0
- package/lib/typescript/runtimes.native.d.ts.map +1 -0
- package/lib/typescript/specs/NativeWorkletsModule.d.ts +9 -0
- package/lib/typescript/specs/NativeWorkletsModule.d.ts.map +1 -0
- package/lib/typescript/specs/index.d.ts +3 -0
- package/lib/typescript/specs/index.d.ts.map +1 -0
- package/lib/typescript/threads.d.ts +8 -0
- package/lib/typescript/threads.d.ts.map +1 -0
- package/lib/typescript/threads.native.d.ts +125 -0
- package/lib/typescript/threads.native.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +136 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/workletFunction.d.ts +26 -0
- package/lib/typescript/workletFunction.d.ts.map +1 -0
- package/package.json +220 -0
- package/plugin/index.d.ts +168 -0
- package/plugin/index.js +2188 -0
- package/scripts/validate-react-native-version.js +43 -0
- package/scripts/worklets_utils.rb +94 -0
- package/src/WorkletsModule/NativeWorklets.native.ts +461 -0
- package/src/WorkletsModule/NativeWorklets.ts +5 -0
- package/src/WorkletsModule/workletsModuleProxy.ts +247 -0
- package/src/bundleMode/metroOverrides.native.ts +33 -0
- package/src/bundleMode/network.native.ts +63 -0
- package/src/debug/bundleMode.native.ts +18 -0
- package/src/debug/bundleMode.ts +5 -0
- package/src/debug/checkCppVersion.ts +34 -0
- package/src/debug/errors.native.ts +74 -0
- package/src/debug/jsVersion.ts +8 -0
- package/src/debug/logger.ts +16 -0
- package/src/debug/slowAnimations.native.ts +15 -0
- package/src/debug/slowAnimations.ts +6 -0
- package/src/deprecated.ts +38 -0
- package/src/featureFlags/featureFlags.native.ts +70 -0
- package/src/featureFlags/featureFlags.ts +20 -0
- package/src/featureFlags/staticFlags.json +6 -0
- package/src/featureFlags/types.ts +32 -0
- package/src/guardImplementation.native.ts +26 -0
- package/src/index.ts +95 -0
- package/src/initializers/initializers.native.ts +218 -0
- package/src/initializers/initializers.ts +24 -0
- package/src/memory/bundleUnpacker.native.ts +59 -0
- package/src/memory/customSerializableUnpacker.native.ts +30 -0
- package/src/memory/isShareable.ts +16 -0
- package/src/memory/isSynchronizable.ts +14 -0
- package/src/memory/remoteFunctionUnpacker.native.ts +27 -0
- package/src/memory/serializable.native.ts +889 -0
- package/src/memory/serializable.ts +36 -0
- package/src/memory/serializableMappingCache.native.ts +37 -0
- package/src/memory/serializableMappingCache.ts +12 -0
- package/src/memory/shareable.native.ts +68 -0
- package/src/memory/shareable.ts +27 -0
- package/src/memory/shareableGuestUnpacker.native.ts +168 -0
- package/src/memory/shareableHostUnpacker.native.ts +31 -0
- package/src/memory/synchronizable.native.ts +17 -0
- package/src/memory/synchronizable.ts +9 -0
- package/src/memory/synchronizableUnpacker.native.ts +65 -0
- package/src/memory/types.ts +191 -0
- package/src/memory/valueUnpacker.native.ts +79 -0
- package/src/mock.ts +111 -0
- package/src/platformChecker.native.ts +3 -0
- package/src/platformChecker.ts +4 -0
- package/src/privateGlobals.d.ts +127 -0
- package/src/runLoop/common/setImmediatePolyfill.ts +20 -0
- package/src/runLoop/common/setIntervalPolyfill.ts +38 -0
- package/src/runLoop/uiRuntime/mockedRequestAnimationFrame.ts +11 -0
- package/src/runLoop/uiRuntime/requestAnimationFrame.ts +87 -0
- package/src/runLoop/uiRuntime/setTimeoutPolyfill.ts +40 -0
- package/src/runLoop/workletRuntime/index.ts +18 -0
- package/src/runLoop/workletRuntime/queueMicrotask.ts +13 -0
- package/src/runLoop/workletRuntime/requestAnimationFramePolyfill.ts +61 -0
- package/src/runLoop/workletRuntime/setTimeout.ts +37 -0
- package/src/runLoop/workletRuntime/taskQueue.ts +44 -0
- package/src/runtimeKind.ts +85 -0
- package/src/runtimes.native.ts +572 -0
- package/src/runtimes.ts +107 -0
- package/src/specs/NativeWorkletsModule.ts +11 -0
- package/src/specs/index.ts +13 -0
- package/src/threads.native.ts +408 -0
- package/src/threads.ts +110 -0
- package/src/types.ts +164 -0
- package/src/workletFunction.ts +41 -0
package/package.json
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/react-native-worklets",
|
|
3
|
+
"version": "0.11.3-depup.0",
|
|
4
|
+
"description": "The React Native multithreading library (with updated dependencies)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react-native-worklets",
|
|
7
|
+
"depup",
|
|
8
|
+
"updated-dependencies",
|
|
9
|
+
"security",
|
|
10
|
+
"latest",
|
|
11
|
+
"patched",
|
|
12
|
+
"react-native",
|
|
13
|
+
"react",
|
|
14
|
+
"native",
|
|
15
|
+
"worklets"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "yarn workspace babel-plugin-worklets build && yarn set-version && yarn run --top-level bob build",
|
|
19
|
+
"circular-dependency-check": "yarn madge --extensions js,jsx --circular lib",
|
|
20
|
+
"find-unused-code:js": "knip",
|
|
21
|
+
"format": "yarn format:js && yarn format:plugin && yarn format:common && yarn format:android && yarn format:apple",
|
|
22
|
+
"format:android": "yarn format:android:java && yarn format:android:cpp && yarn format:android:cmake",
|
|
23
|
+
"format:android:cpp": "find android/src -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
24
|
+
"format:android:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/format-cmake.sh",
|
|
25
|
+
"format:android:java": "node ../../scripts/format-java.js",
|
|
26
|
+
"format:apple": "find apple -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
27
|
+
"format:common": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
28
|
+
"format:js": "yarn run --top-level oxfmt src",
|
|
29
|
+
"format:plugin": "yarn workspace babel-plugin-worklets format",
|
|
30
|
+
"lint": "yarn lint:js && yarn lint:plugin && yarn lint:android && yarn lint:apple && yarn lint:clang-tidy",
|
|
31
|
+
"lint:android": "../../scripts/validate-android.sh && ../../scripts/validate-common.sh && ./android/gradlew -p android spotlessCheck -q && yarn format:common --dry-run -Werror && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake",
|
|
32
|
+
"lint:apple": "../../scripts/validate-apple.sh && ../../scripts/validate-common.sh && yarn format:common --dry-run -Werror && yarn format:apple --dry-run -Werror",
|
|
33
|
+
"lint:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh",
|
|
34
|
+
"lint:clang-tidy": "yarn lint:clang-tidy:ios && yarn lint:clang-tidy:android",
|
|
35
|
+
"lint:clang-tidy:ios": "../../scripts/llvm-tools/clang-tidy-lint.sh --platform=ios",
|
|
36
|
+
"lint:clang-tidy:android": "../../scripts/llvm-tools/clang-tidy-lint.sh --platform=android",
|
|
37
|
+
"lint:js": "eslint src && yarn run --top-level oxfmt --check src",
|
|
38
|
+
"lint:plugin": "yarn workspace babel-plugin-worklets lint",
|
|
39
|
+
"set-version": "node scripts/set-version.js",
|
|
40
|
+
"test": "jest",
|
|
41
|
+
"type:check": "yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests",
|
|
42
|
+
"type:check:src:native": "yarn tsc --noEmit",
|
|
43
|
+
"type:check:src:web": "yarn tsc --noEmit --project tsconfig.web.json",
|
|
44
|
+
"type:check:app": "yarn workspace common-app type:check",
|
|
45
|
+
"type:check:plugin": "yarn workspace babel-plugin-worklets type:check",
|
|
46
|
+
"type:check:tests": "../../scripts/test-ts.sh __typetests__",
|
|
47
|
+
"type:check:strict": "yarn type:check:strict:src && yarn type:check:strict:app",
|
|
48
|
+
"type:check:strict:src": "yarn tsc --noEmit --customConditions react-native-strict-api",
|
|
49
|
+
"type:check:strict:app": "yarn workspace common-app type:check:strict",
|
|
50
|
+
"tree-shake:check:web": "yarn is-tree-shakable --resolution web",
|
|
51
|
+
"validate-peers": "node ../../scripts/validate-compatibility-peer-dependencies.js"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/software-mansion/react-native-reanimated.git",
|
|
56
|
+
"directory": "packages/react-native-worklets"
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"readmeFilename": "README.md",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/software-mansion/react-native-reanimated/issues"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://docs.swmansion.com/react-native-worklets",
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@babel/core": "*",
|
|
66
|
+
"@react-native/metro-config": "*",
|
|
67
|
+
"react": "*",
|
|
68
|
+
"react-native": "0.83 - 0.86"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@babel/generator": "^8.0.0",
|
|
72
|
+
"@babel/plugin-transform-arrow-functions": "^8.0.1",
|
|
73
|
+
"@babel/plugin-transform-class-properties": "^8.0.1",
|
|
74
|
+
"@babel/plugin-transform-classes": "^8.0.1",
|
|
75
|
+
"@babel/plugin-transform-nullish-coalescing-operator": "^8.0.1",
|
|
76
|
+
"@babel/plugin-transform-optional-chaining": "^8.0.1",
|
|
77
|
+
"@babel/plugin-transform-shorthand-properties": "^8.0.1",
|
|
78
|
+
"@babel/plugin-transform-template-literals": "^8.0.1",
|
|
79
|
+
"@babel/plugin-transform-unicode-regex": "^8.0.1",
|
|
80
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
81
|
+
"@babel/traverse": "^8.0.4",
|
|
82
|
+
"@babel/types": "^8.0.4",
|
|
83
|
+
"convert-source-map": "^2.0.0",
|
|
84
|
+
"semver": "^7.8.5"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@babel/cli": "7.28.3",
|
|
88
|
+
"@babel/core": "7.28.4",
|
|
89
|
+
"@react-native-community/cli": "20.1.0",
|
|
90
|
+
"@react-native/eslint-config": "0.83.0",
|
|
91
|
+
"@react-native/jest-preset": "patch:@react-native/jest-preset@npm%3A0.86.0#~/.yarn/patches/@react-native-jest-preset-npm-0.86.0-7a936108b4.patch",
|
|
92
|
+
"@types/jest": "30.0.0",
|
|
93
|
+
"@types/node": "24.7.0",
|
|
94
|
+
"@types/react": "19.2.2",
|
|
95
|
+
"clang-format-node": "1.3.5",
|
|
96
|
+
"code-tag": "1.2.0",
|
|
97
|
+
"eslint": "9.37.0",
|
|
98
|
+
"is-tree-shakable": "0.5.0",
|
|
99
|
+
"jest": "30.2.0",
|
|
100
|
+
"knip": "5.61.3",
|
|
101
|
+
"madge": "8.0.0",
|
|
102
|
+
"react": "19.2.3",
|
|
103
|
+
"react-native": "0.86.0",
|
|
104
|
+
"typescript": "5.9.3"
|
|
105
|
+
},
|
|
106
|
+
"main": "./lib/module/index",
|
|
107
|
+
"module": "./lib/module/index",
|
|
108
|
+
"react-native": "./src/index",
|
|
109
|
+
"source": "./src/index",
|
|
110
|
+
"types": "lib/typescript/index.d.ts",
|
|
111
|
+
"files": [
|
|
112
|
+
"src",
|
|
113
|
+
"lib",
|
|
114
|
+
"android",
|
|
115
|
+
"apple",
|
|
116
|
+
"Common",
|
|
117
|
+
"compatibility.json",
|
|
118
|
+
"bundleMode/index.js",
|
|
119
|
+
"bundleMode/index.d.ts",
|
|
120
|
+
"bundleMode/shims/*.js",
|
|
121
|
+
"scripts/worklets_utils.rb",
|
|
122
|
+
"scripts/validate-react-native-version.js",
|
|
123
|
+
"jest",
|
|
124
|
+
"plugin/index.js",
|
|
125
|
+
"plugin/index.d.ts",
|
|
126
|
+
"*.podspec",
|
|
127
|
+
"react-native.config.js",
|
|
128
|
+
"!apple/build",
|
|
129
|
+
"!android/build",
|
|
130
|
+
"!android/gradle",
|
|
131
|
+
"!android/gradlew",
|
|
132
|
+
"!android/gradlew.bat",
|
|
133
|
+
"!android/local.properties",
|
|
134
|
+
"!.worklets",
|
|
135
|
+
".worklets/dummy.md",
|
|
136
|
+
"!**/__tests__",
|
|
137
|
+
"!**/__fixtures__",
|
|
138
|
+
"!**/__mocks__",
|
|
139
|
+
"!**/.*",
|
|
140
|
+
"changes.json",
|
|
141
|
+
"README.md"
|
|
142
|
+
],
|
|
143
|
+
"sideEffects": [
|
|
144
|
+
"./src/index.ts",
|
|
145
|
+
"./lib/module/index.js",
|
|
146
|
+
"./**/runtimeKind.{js,ts}",
|
|
147
|
+
"./**/serializable.native.{js,ts}",
|
|
148
|
+
"./**/initializers.native.{js,ts}",
|
|
149
|
+
"./**/featureFlags.native.{js,ts}"
|
|
150
|
+
],
|
|
151
|
+
"codegenConfig": {
|
|
152
|
+
"name": "rnworklets",
|
|
153
|
+
"type": "modules",
|
|
154
|
+
"jsSrcsDir": "src/specs",
|
|
155
|
+
"android": {
|
|
156
|
+
"javaPackageName": "com.swmansion.worklets"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"depup": {
|
|
160
|
+
"changes": {
|
|
161
|
+
"@babel/generator": {
|
|
162
|
+
"from": "^7.27.1",
|
|
163
|
+
"to": "^8.0.0"
|
|
164
|
+
},
|
|
165
|
+
"@babel/plugin-transform-arrow-functions": {
|
|
166
|
+
"from": "^7.27.1",
|
|
167
|
+
"to": "^8.0.1"
|
|
168
|
+
},
|
|
169
|
+
"@babel/plugin-transform-class-properties": {
|
|
170
|
+
"from": "^7.28.6",
|
|
171
|
+
"to": "^8.0.1"
|
|
172
|
+
},
|
|
173
|
+
"@babel/plugin-transform-classes": {
|
|
174
|
+
"from": "^7.28.6",
|
|
175
|
+
"to": "^8.0.1"
|
|
176
|
+
},
|
|
177
|
+
"@babel/plugin-transform-nullish-coalescing-operator": {
|
|
178
|
+
"from": "^7.28.6",
|
|
179
|
+
"to": "^8.0.1"
|
|
180
|
+
},
|
|
181
|
+
"@babel/plugin-transform-optional-chaining": {
|
|
182
|
+
"from": "^7.28.6",
|
|
183
|
+
"to": "^8.0.1"
|
|
184
|
+
},
|
|
185
|
+
"@babel/plugin-transform-shorthand-properties": {
|
|
186
|
+
"from": "^7.27.1",
|
|
187
|
+
"to": "^8.0.1"
|
|
188
|
+
},
|
|
189
|
+
"@babel/plugin-transform-template-literals": {
|
|
190
|
+
"from": "^7.27.1",
|
|
191
|
+
"to": "^8.0.1"
|
|
192
|
+
},
|
|
193
|
+
"@babel/plugin-transform-unicode-regex": {
|
|
194
|
+
"from": "^7.27.1",
|
|
195
|
+
"to": "^8.0.1"
|
|
196
|
+
},
|
|
197
|
+
"@babel/preset-typescript": {
|
|
198
|
+
"from": "^7.28.5",
|
|
199
|
+
"to": "^8.0.1"
|
|
200
|
+
},
|
|
201
|
+
"@babel/traverse": {
|
|
202
|
+
"from": "^7.27.1",
|
|
203
|
+
"to": "^8.0.4"
|
|
204
|
+
},
|
|
205
|
+
"@babel/types": {
|
|
206
|
+
"from": "^7.27.1",
|
|
207
|
+
"to": "^8.0.4"
|
|
208
|
+
},
|
|
209
|
+
"semver": {
|
|
210
|
+
"from": "^7.7.4",
|
|
211
|
+
"to": "^7.8.5"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"depsUpdated": 13,
|
|
215
|
+
"originalPackage": "react-native-worklets",
|
|
216
|
+
"originalVersion": "0.11.3",
|
|
217
|
+
"processedAt": "2026-07-26T00:57:51.822Z",
|
|
218
|
+
"smokeTest": "failed"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
export interface PluginOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Enables the [Bundle
|
|
4
|
+
* Mode](https://docs.swmansion.com/react-native-worklets/docs/bundleMode).
|
|
5
|
+
*
|
|
6
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#bundle-mode}
|
|
7
|
+
*
|
|
8
|
+
* - Defaults to `false`.
|
|
9
|
+
*/
|
|
10
|
+
bundleMode?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Turning on this option suppresses a helpful warning when you use [inline
|
|
13
|
+
* shared
|
|
14
|
+
* values](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animations-in-inline-styling).
|
|
15
|
+
*
|
|
16
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#disableinlinestyleswarning}
|
|
17
|
+
*
|
|
18
|
+
* - Defaults to `false`.
|
|
19
|
+
*/
|
|
20
|
+
disableInlineStylesWarning?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* This option turns off the source map generation for worklets. Mostly used
|
|
23
|
+
* for testing purposes.
|
|
24
|
+
*
|
|
25
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#disablesourcemaps}
|
|
26
|
+
*
|
|
27
|
+
* - Defaults to `false`.
|
|
28
|
+
*/
|
|
29
|
+
disableSourceMaps?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Disables [Worklet Classes
|
|
32
|
+
* support](https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/about#experimental-worklet-classes).
|
|
33
|
+
* You might need to disable this feature when using [Custom
|
|
34
|
+
* Serializables](https://docs.swmansion.com/react-native-worklets/docs/memory/registerCustomSerializable).
|
|
35
|
+
*
|
|
36
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#disableworkletclasses}
|
|
37
|
+
*
|
|
38
|
+
* - Defaults to `false`.
|
|
39
|
+
*/
|
|
40
|
+
disableWorkletClasses?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* This is a list of Babel plugins that will be used when transforming
|
|
43
|
+
* worklets' code with Worklets Babel Plugin.
|
|
44
|
+
*
|
|
45
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#extraplugins}
|
|
46
|
+
*
|
|
47
|
+
* - Defaults to an empty array `[]`.
|
|
48
|
+
*/
|
|
49
|
+
extraPlugins?: string[];
|
|
50
|
+
/**
|
|
51
|
+
* This is a list of Babel presets that will be used when transforming
|
|
52
|
+
* worklets' code with Worklets Babel Plugin.
|
|
53
|
+
*
|
|
54
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#extrapresets}
|
|
55
|
+
*
|
|
56
|
+
* - Defaults to an empty array `[]`.
|
|
57
|
+
*/
|
|
58
|
+
extraPresets?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* This is a list of identifiers (objects) that will not be copied to the UI
|
|
61
|
+
* thread if a worklet requires them.
|
|
62
|
+
*
|
|
63
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#globals}
|
|
64
|
+
*
|
|
65
|
+
* - Defaults to an empty array `[]`.
|
|
66
|
+
*/
|
|
67
|
+
globals?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* _EXPERIMENTAL_
|
|
70
|
+
*
|
|
71
|
+
* This options enables compilation of worklets to Hermes bytecode. The
|
|
72
|
+
* compilation is used only for production builds.
|
|
73
|
+
*
|
|
74
|
+
* This setting applies only to Legacy Eval Mode and has no effect on Bundle
|
|
75
|
+
* Mode.
|
|
76
|
+
*/
|
|
77
|
+
hermesBytecode?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* _EXPERIMENTAL_
|
|
80
|
+
*
|
|
81
|
+
* This option is required to specify the path to the Hermes bytecode
|
|
82
|
+
* compiler binary. It is used only when `hermesBytecode` is enabled.
|
|
83
|
+
*/
|
|
84
|
+
getHBCBinary?: () => string;
|
|
85
|
+
/** Temporary internal option to create ShareableUnpacker. */
|
|
86
|
+
limitInitDataHoisting?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* This option comes in handy for Web apps. Because Babel ordinarily doesn't
|
|
89
|
+
* get information about the target platform, it includes worklet data in
|
|
90
|
+
* the bundle that only Native apps find relevant. If you enable this
|
|
91
|
+
* option, your bundle size will be smaller.
|
|
92
|
+
*
|
|
93
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#omitnativeonlydata}
|
|
94
|
+
*
|
|
95
|
+
* - Defaults to `false`.
|
|
96
|
+
*/
|
|
97
|
+
omitNativeOnlyData?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* This option dictates the passed file location for a worklet's source map.
|
|
100
|
+
* If you enable this option, the file paths will be relative to
|
|
101
|
+
* `process.cwd` (the current directory where Babel executes). This can be
|
|
102
|
+
* handy for Jest test snapshots to ensure consistent results across
|
|
103
|
+
* machines.
|
|
104
|
+
*
|
|
105
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#relativesourcelocation}
|
|
106
|
+
*
|
|
107
|
+
* - Defaults to `false`.
|
|
108
|
+
*/
|
|
109
|
+
relativeSourceLocation?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* This option makes it so no global identifiers are implicitly captured in
|
|
112
|
+
* worklets' closures between runtimes.
|
|
113
|
+
*
|
|
114
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#strictglobal}
|
|
115
|
+
*
|
|
116
|
+
* Defaults to `false`.
|
|
117
|
+
*/
|
|
118
|
+
strictGlobal?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* This option can also be useful for Web apps. In Reanimated, there are
|
|
121
|
+
* numerous checks to determine the right function implementation for a
|
|
122
|
+
* specific target platform. Enabling this option changes all the checks
|
|
123
|
+
* that identify if the target is a Web app to `true`. This alteration can
|
|
124
|
+
* aid in tree-shaking and contribute to reducing the bundle size.
|
|
125
|
+
*
|
|
126
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#substitutewebplatformchecks}
|
|
127
|
+
*
|
|
128
|
+
* - Defaults to `false`.
|
|
129
|
+
*/
|
|
130
|
+
substituteWebPlatformChecks?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Configures [import
|
|
133
|
+
* forwarding](https://docs.swmansion.com/react-native-worklets/docs/bundleMode/importForwarding)
|
|
134
|
+
* for the Bundle Mode.
|
|
135
|
+
*
|
|
136
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#importforwarding}
|
|
137
|
+
*/
|
|
138
|
+
importForwarding?: {
|
|
139
|
+
/**
|
|
140
|
+
* List of exact module names whose imports should be forwarded inside
|
|
141
|
+
* worklets.
|
|
142
|
+
*
|
|
143
|
+
* The module name has to be an exact match — with `'my-library'` in the
|
|
144
|
+
* list, an import from `'my-library/some-file'` won't be forwarded.
|
|
145
|
+
*
|
|
146
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#importforwardingmodulenames}
|
|
147
|
+
*
|
|
148
|
+
* - Defaults to an empty array `[]`.
|
|
149
|
+
*/
|
|
150
|
+
moduleNames?: string[];
|
|
151
|
+
/**
|
|
152
|
+
* List of paths used to determine which modules should forward their
|
|
153
|
+
* relative imports inside worklets.
|
|
154
|
+
*
|
|
155
|
+
* If a module's path matches any of the provided paths, all relative
|
|
156
|
+
* imports inside that module's worklets will be forwarded.
|
|
157
|
+
*
|
|
158
|
+
* Use this instead of {@link moduleNames} when you want to forward
|
|
159
|
+
* relative imports (like `'./utils'`) from a specific package, without
|
|
160
|
+
* affecting identically-named relative imports in other packages.
|
|
161
|
+
*
|
|
162
|
+
* {@link https://docs.swmansion.com/react-native-worklets/docs/worklets-babel-plugin/plugin-options#importforwardingrelativepaths}
|
|
163
|
+
*
|
|
164
|
+
* - Defaults to an empty array `[]`.
|
|
165
|
+
*/
|
|
166
|
+
relativePaths?: string[];
|
|
167
|
+
};
|
|
168
|
+
}
|