react-native-worklets 0.2.0 → 0.3.0-nightly-20250424-43520c73e
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/RNWorklets.podspec +12 -3
- package/android/CMakeLists.txt +87 -7
- package/android/build.gradle +23 -9
- package/apple/worklets/apple/SlowAnimations.mm +1 -3
- package/apple/worklets/apple/WorkletsModule.h +4 -1
- package/apple/worklets/apple/WorkletsModule.mm +19 -2
- package/lib/module/WorkletsError.js +19 -5
- package/lib/module/WorkletsError.js.map +1 -1
- package/lib/module/WorkletsModule/NativeWorklets.js +8 -1
- package/lib/module/WorkletsModule/NativeWorklets.js.map +1 -1
- package/lib/module/errors.js +0 -28
- package/lib/module/errors.js.map +1 -1
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/privateGlobals.d.js +1 -0
- package/lib/module/privateGlobals.d.js.map +1 -1
- package/lib/module/runtimes.js +2 -2
- package/lib/module/runtimes.js.map +1 -1
- package/lib/module/threads.js +2 -2
- package/lib/module/threads.js.map +1 -1
- package/lib/typescript/WorkletsError.d.ts +13 -1
- package/lib/typescript/WorkletsError.d.ts.map +1 -1
- package/lib/typescript/WorkletsModule/NativeWorklets.d.ts.map +1 -1
- package/lib/typescript/errors.d.ts +0 -11
- package/lib/typescript/errors.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +0 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/plugin/index.js +1665 -2
- package/scripts/worklets_utils.rb +6 -1
- package/src/WorkletsError.ts +27 -7
- package/src/WorkletsModule/NativeWorklets.ts +9 -1
- package/src/errors.ts +0 -40
- package/src/index.ts +0 -2
- package/src/privateGlobals.d.ts +3 -0
- package/src/runtimes.ts +2 -2
- package/src/threads.ts +2 -2
- package/android/src/main/cpp/worklets/CMakeLists.txt +0 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-worklets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-nightly-20250424-43520c73e",
|
|
4
4
|
"description": "The React Native multithreading library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"format:apple": "find apple -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
21
21
|
"format:common": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
22
22
|
"format:js": "prettier --write --list-different src",
|
|
23
|
-
"format:plugin": "yarn workspace babel-plugin-
|
|
23
|
+
"format:plugin": "yarn workspace babel-plugin-worklets format",
|
|
24
24
|
"lint": "yarn lint:js && yarn lint:common && yarn lint:plugin && yarn lint:android && yarn lint:apple",
|
|
25
25
|
"lint:android": "../../scripts/validate-android.sh && ./android/gradlew -p android spotlessCheck -q && ../../scripts/cpplint.sh android/src && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake",
|
|
26
26
|
"lint:apple": "../../scripts/validate-apple.sh && yarn format:apple --dry-run -Werror",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"lint:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh",
|
|
29
29
|
"lint:clang-tidy": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs ../../scripts/clang-tidy-lint.sh",
|
|
30
30
|
"lint:js": "eslint src && yarn prettier --check src",
|
|
31
|
-
"lint:plugin": "yarn workspace babel-plugin-
|
|
31
|
+
"lint:plugin": "yarn workspace babel-plugin-worklets lint",
|
|
32
32
|
"test": "jest",
|
|
33
33
|
"type:check": "yarn type:check:src && yarn type:check:plugin && yarn type:check:app",
|
|
34
34
|
"type:check:src": "yarn tsc --noEmit",
|
|
35
35
|
"type:check:app": "yarn workspace common-app type:check",
|
|
36
|
-
"type:check:plugin": "yarn workspace babel-plugin-
|
|
36
|
+
"type:check:plugin": "yarn workspace babel-plugin-worklets type:check",
|
|
37
37
|
"use-strict-check": "node ../../scripts/validate-use-strict.js"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
"react-native": "*"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@react-native-community/cli": "
|
|
56
|
+
"@react-native-community/cli": "18.0.0",
|
|
57
57
|
"@react-native/eslint-config": "0.76.5",
|
|
58
58
|
"@types/jest": "^29.5.5",
|
|
59
|
-
"@types/react": "^
|
|
59
|
+
"@types/react": "^19.0.10",
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
61
|
-
"babel-plugin-
|
|
61
|
+
"babel-plugin-worklets": "workspace:*",
|
|
62
62
|
"clang-format-node": "^1.3.1",
|
|
63
63
|
"eslint": "^8.57.0",
|
|
64
64
|
"eslint-plugin-reanimated": "workspace:*",
|
|
65
65
|
"jest": "^29.0.0",
|
|
66
66
|
"madge": "^5.0.1",
|
|
67
67
|
"prettier": "^3.3.3",
|
|
68
|
-
"react": "
|
|
69
|
-
"react-native": "0.
|
|
70
|
-
"react-native-builder-bob": "0.33.1",
|
|
68
|
+
"react": "19.0.0",
|
|
69
|
+
"react-native": "0.79.1",
|
|
70
|
+
"react-native-builder-bob": "patch:react-native-builder-bob@npm%3A0.33.1#~/.yarn/patches/react-native-builder-bob-npm-0.33.1-383d9e23a5.patch",
|
|
71
71
|
"typescript": "~5.3.0"
|
|
72
72
|
},
|
|
73
73
|
"main": "./lib/module/index",
|