react-native-worklets 0.10.0 → 0.10.1
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.h +9 -3
- package/Common/cpp/worklets/SharedItems/SerializableFactory.cpp +17 -8
- package/Common/cpp/worklets/SharedItems/SerializableFactory.h +8 -5
- package/Common/cpp/worklets/SharedItems/SerializableRemoteFunction.cpp +34 -76
- package/Common/cpp/worklets/SharedItems/SerializableRemoteFunction.h +40 -113
- package/Common/cpp/worklets/Tools/RNRuntimeStatus.h +27 -0
- package/android/src/main/cpp/worklets/android/WorkletsModule.cpp +6 -2
- 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 +6 -4
- package/bundleMode/index.js +2 -1
- 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 +15 -9
- package/lib/module/memory/serializable.native.js.map +1 -1
- package/lib/module/memory/serializableMappingCache.native.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 +1 -1
- 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 +15 -13
- package/src/memory/serializableMappingCache.native.ts +8 -2
- package/src/memory/types.ts +0 -5
- package/src/privateGlobals.d.ts +0 -1
- 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/memory/types.ts
CHANGED
|
@@ -189,8 +189,3 @@ export interface RemoteFunction extends SerializableRef {
|
|
|
189
189
|
/** Defined when extracted on a Guest Runtime. */
|
|
190
190
|
__remoteFunction: true | undefined;
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
export interface RegisteredRemoteFunction extends SerializableRef {
|
|
194
|
-
/** Defined when created on the Host Runtime. */
|
|
195
|
-
__keepAlive: true | undefined;
|
|
196
|
-
}
|
package/src/privateGlobals.d.ts
CHANGED
|
@@ -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;
|