react-native-worklets 0.8.1 → 0.8.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.
|
@@ -37,11 +37,13 @@ Shareable::Shareable(
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
Shareable::~Shareable() {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
strongHostRuntime
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
if (hostValue_) {
|
|
41
|
+
const auto strongHostRuntime = weakHostRuntime_.lock();
|
|
42
|
+
if (strongHostRuntime) {
|
|
43
|
+
hostValue_.reset();
|
|
44
|
+
} else {
|
|
45
|
+
hostValue_.release();
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ React Native Worklets is a library that allows you to run JavaScript code in par
|
|
|
6
6
|
|
|
7
7
|
## Nightly CI state
|
|
8
8
|
|
|
9
|
-
[![NPM Worklets publish [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-worklets-publish
|
|
9
|
+
[![NPM Worklets publish [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-worklets-publish.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-worklets-publish.yml)
|
|
10
10
|
[![Lint clang-tidy [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/lint-clang-tidy-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/lint-clang-tidy-nightly.yml)
|
|
11
11
|
[](https://github.com/software-mansion/react-native-reanimated/actions/workflows/expo-devclient-build-check-nightly.yml)
|
|
12
12
|
[![Worklets Bundle Mode build check [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/worklets-bundle-mode-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/worklets-bundle-mode-build-check-nightly.yml)
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* version used to build the native part of the library in runtime. Remember to
|
|
4
4
|
* keep this in sync with the version declared in `package.json`
|
|
5
5
|
*/
|
|
6
|
-
export declare const jsVersion = "0.8.
|
|
6
|
+
export declare const jsVersion = "0.8.3";
|
|
7
7
|
//# sourceMappingURL=jsVersion.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-worklets",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "The React Native multithreading library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"worklets"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "yarn workspace babel-plugin-worklets build && bob build && yarn build:unpackers",
|
|
12
|
+
"build": "yarn workspace babel-plugin-worklets build && yarn set-version && bob build && yarn build:unpackers",
|
|
13
13
|
"build:unpackers": "NODE_ENV='production' node ./scripts/export-unpackers.js",
|
|
14
14
|
"circular-dependency-check": "yarn madge --extensions js,jsx --circular lib",
|
|
15
15
|
"find-unused-code:js": "knip",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"lint:clang-tidy": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs ../../scripts/clang-tidy-lint.sh",
|
|
31
31
|
"lint:js": "eslint src && yarn prettier --check src",
|
|
32
32
|
"lint:plugin": "yarn workspace babel-plugin-worklets lint",
|
|
33
|
+
"prepack": "yarn build",
|
|
34
|
+
"set-version": "node scripts/set-version.js",
|
|
33
35
|
"test": "jest",
|
|
34
36
|
"type:check": "yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests",
|
|
35
37
|
"type:check:src:native": "yarn tsc --noEmit",
|
package/src/debug/jsVersion.ts
CHANGED