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.
- package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.cpp +8 -11
- package/Common/cpp/worklets/NativeModules/JSIWorkletsModuleProxy.h +5 -0
- package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.cpp +4 -1
- package/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.h +4 -1
- package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp +1 -1
- package/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.h +11 -8
- package/Common/cpp/worklets/SharedItems/Serializable.cpp +9 -23
- package/Common/cpp/worklets/SharedItems/Serializable.h +30 -25
- package/Common/cpp/worklets/SharedItems/SerializableFactory.cpp +9 -3
- package/Common/cpp/worklets/SharedItems/SerializableFactory.h +3 -2
- package/Common/cpp/worklets/SharedItems/UnpackerLoader.h +38 -31
- package/Common/cpp/worklets/Tools/RNRuntimeStatus.h +27 -0
- package/android/build.gradle.kts +5 -1
- package/android/fix-prefab.gradle.kts +5 -1
- package/android/src/main/cpp/worklets/android/WorkletsModule.cpp +4 -1
- package/android/src/main/cpp/worklets/android/WorkletsModule.h +2 -0
- package/android/src/networking/com/swmansion/worklets/WorkletsModule.kt +0 -3
- package/android/src/no-networking/com/swmansion/worklets/WorkletsModule.kt +0 -3
- package/apple/worklets/apple/WorkletsModule.mm +8 -4
- package/bundleMode/index.js +19 -3
- package/lib/module/WorkletsModule/NativeWorklets.native.js +2 -2
- package/lib/module/WorkletsModule/NativeWorklets.native.js.map +1 -1
- package/lib/module/debug/jsVersion.js +1 -1
- package/lib/module/memory/serializable.native.js +13 -7
- package/lib/module/memory/serializable.native.js.map +1 -1
- package/lib/module/memory/serializableMappingCache.native.js.map +1 -1
- package/lib/module/privateGlobals.d.js +0 -1
- package/lib/module/privateGlobals.d.js.map +1 -1
- package/lib/typescript/WorkletsModule/NativeWorklets.native.d.ts.map +1 -1
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts +1 -1
- package/lib/typescript/WorkletsModule/workletsModuleProxy.d.ts.map +1 -1
- package/lib/typescript/debug/jsVersion.d.ts +1 -1
- package/lib/typescript/deprecated.d.ts +2 -2
- package/lib/typescript/memory/serializable.native.d.ts.map +1 -1
- package/lib/typescript/memory/serializableMappingCache.native.d.ts +2 -2
- package/lib/typescript/memory/serializableMappingCache.native.d.ts.map +1 -1
- package/lib/typescript/memory/types.d.ts +0 -4
- package/lib/typescript/memory/types.d.ts.map +1 -1
- package/package.json +2 -1
- package/plugin/index.js +8 -8
- package/src/WorkletsModule/NativeWorklets.native.ts +0 -2
- package/src/WorkletsModule/workletsModuleProxy.ts +0 -1
- package/src/debug/jsVersion.ts +1 -1
- package/src/memory/serializable.native.ts +14 -12
- package/src/memory/serializableMappingCache.native.ts +8 -2
- package/src/memory/types.ts +0 -5
- package/src/privateGlobals.d.ts +0 -2
- package/lib/module/memory/remoteFunctionRegistry.native.js +0 -12
- package/lib/module/memory/remoteFunctionRegistry.native.js.map +0 -1
- package/lib/typescript/memory/remoteFunctionRegistry.native.d.ts +0 -3
- package/lib/typescript/memory/remoteFunctionRegistry.native.d.ts.map +0 -1
- package/src/memory/remoteFunctionRegistry.native.ts +0 -14
package/src/privateGlobals.d.ts
CHANGED
|
@@ -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 +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;
|