react-native-worklets 0.9.1 → 0.9.3

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.
Files changed (52) hide show
  1. package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.cpp +8 -11
  2. package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.h +5 -0
  3. package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.cpp +4 -1
  4. package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.h +4 -1
  5. package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp +1 -1
  6. package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.h +11 -8
  7. package/Common/cpp/worklets/SharedItems/Serializable.cpp +9 -23
  8. package/Common/cpp/worklets/SharedItems/Serializable.h +30 -25
  9. package/Common/cpp/worklets/SharedItems/SerializableFactory.cpp +9 -3
  10. package/Common/cpp/worklets/SharedItems/SerializableFactory.h +3 -2
  11. package/Common/cpp/worklets/SharedItems/UnpackerLoader.h +38 -31
  12. package/Common/cpp/worklets/Tools/RNRuntimeStatus.h +27 -0
  13. package/android/build.gradle.kts +5 -1
  14. package/android/fix-prefab.gradle.kts +5 -1
  15. package/android/src/main/cpp/worklets/android/WorkletsModule.cpp +4 -1
  16. package/android/src/main/cpp/worklets/android/WorkletsModule.h +2 -0
  17. package/android/src/networking/com/swmansion/worklets/WorkletsModule.kt +0 -3
  18. package/android/src/no-networking/com/swmansion/worklets/WorkletsModule.kt +0 -3
  19. package/apple/worklets/apple/WorkletsModule.mm +8 -4
  20. package/bundleMode/index.js +19 -3
  21. package/lib/module/WorkletsModule/NativeWorklets.native.js +2 -2
  22. package/lib/module/WorkletsModule/NativeWorklets.native.js.map +1 -1
  23. package/lib/module/debug/jsVersion.js +1 -1
  24. package/lib/module/memory/serializable.native.js +13 -7
  25. package/lib/module/memory/serializable.native.js.map +1 -1
  26. package/lib/module/memory/serializableMappingCache.native.js.map +1 -1
  27. package/lib/module/privateGlobals.d.js +0 -1
  28. package/lib/module/privateGlobals.d.js.map +1 -1
  29. package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts.map +1 -1
  30. package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts +1 -1
  31. package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts.map +1 -1
  32. package/lib/typescript/debug/jsVersion.d.ts +1 -1
  33. package/lib/typescript/deprecated.d.ts +2 -2
  34. package/lib/typescript/memory/serializable.native.d.ts.map +1 -1
  35. package/lib/typescript/memory/serializableMappingCache.native.d.ts +2 -2
  36. package/lib/typescript/memory/serializableMappingCache.native.d.ts.map +1 -1
  37. package/lib/typescript/memory/types.d.ts +0 -4
  38. package/lib/typescript/memory/types.d.ts.map +1 -1
  39. package/package.json +2 -1
  40. package/plugin/index.js +8 -8
  41. package/src/WorkletsModule/NativeWorklets.native.ts +0 -2
  42. package/src/WorkletsModule/workletsModuleProxy.ts +0 -1
  43. package/src/debug/jsVersion.ts +1 -1
  44. package/src/memory/serializable.native.ts +14 -12
  45. package/src/memory/serializableMappingCache.native.ts +8 -2
  46. package/src/memory/types.ts +0 -5
  47. package/src/privateGlobals.d.ts +0 -2
  48. package/lib/module/memory/remoteFunctionRegistry.native.js +0 -12
  49. package/lib/module/memory/remoteFunctionRegistry.native.js.map +0 -1
  50. package/lib/typescript/memory/remoteFunctionRegistry.native.d.ts +0 -3
  51. package/lib/typescript/memory/remoteFunctionRegistry.native.d.ts.map +0 -1
  52. package/src/memory/remoteFunctionRegistry.native.ts +0 -14
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-function-type */
2
1
  'use strict';
3
2
 
4
3
  // This file works by accident - currently Builder Bob doesn't move `.d.ts` files to output types.
@@ -112,7 +111,6 @@ declare global {
112
111
  unknown,
113
112
  unknown
114
113
  >;
115
- var __remoteFunctionRegistry: Map<number, Function>;
116
114
  /** Only in Bundle Mode on Worklet Runtimes. */
117
115
  var TurboModules: Map<string, unknown>;
118
116
  /**
@@ -1,12 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-function-type */
2
- 'use strict';
3
-
4
- const remoteFunctionRegistry = new Map();
5
- export let nextRemoteFunctionId = 1;
6
- export function registerRemoteFunction(fun) {
7
- const id = nextRemoteFunctionId++;
8
- remoteFunctionRegistry.set(id, fun);
9
- return id;
10
- }
11
- globalThis.__remoteFunctionRegistry = remoteFunctionRegistry;
12
- //# sourceMappingURL=remoteFunctionRegistry.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["remoteFunctionRegistry","Map","nextRemoteFunctionId","registerRemoteFunction","fun","id","set","globalThis","__remoteFunctionRegistry"],"sourceRoot":"../../../src","sources":["memory/remoteFunctionRegistry.native.ts"],"mappings":"AAAA;AACA,YAAY;;AAEZ,MAAMA,sBAAsB,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAE1D,OAAO,IAAIC,oBAAoB,GAAG,CAAC;AAEnC,OAAO,SAASC,sBAAsBA,CAACC,GAAa,EAAU;EAC5D,MAAMC,EAAE,GAAGH,oBAAoB,EAAE;EACjCF,sBAAsB,CAACM,GAAG,CAACD,EAAE,EAAED,GAAG,CAAC;EACnC,OAAOC,EAAE;AACX;AAEAE,UAAU,CAACC,wBAAwB,GAAGR,sBAAsB","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- export declare let nextRemoteFunctionId: number;
2
- export declare function registerRemoteFunction(fun: Function): number;
3
- //# sourceMappingURL=remoteFunctionRegistry.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remoteFunctionRegistry.native.d.ts","sourceRoot":"","sources":["../../../src/memory/remoteFunctionRegistry.native.ts"],"names":[],"mappings":"AAKA,eAAO,IAAI,oBAAoB,QAAI,CAAC;AAEpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAI5D"}
@@ -1,14 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-function-type */
2
- 'use strict';
3
-
4
- const remoteFunctionRegistry = new Map<number, Function>();
5
-
6
- export let nextRemoteFunctionId = 1;
7
-
8
- export function registerRemoteFunction(fun: Function): number {
9
- const id = nextRemoteFunctionId++;
10
- remoteFunctionRegistry.set(id, fun);
11
- return id;
12
- }
13
-
14
- globalThis.__remoteFunctionRegistry = remoteFunctionRegistry;