react-native-worklets 0.10.0 → 0.11.0-nightly-20260624-8b1d9d505

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.
@@ -151,7 +151,8 @@ function getBundleModeMetroConfig(/** @type {any} */ config) {
151
151
  function bundleModeCreateModuleIdFactory() {
152
152
  let nextId = 0;
153
153
  const idFileMap = new Map();
154
- return (/** @type {string} */ moduleName) => {
154
+ return (/** @type {string} */ moduleNameRaw) => {
155
+ const moduleName = moduleNameRaw.replace(/\\/g, '/');
155
156
  if (idFileMap.has(moduleName)) {
156
157
  return idFileMap.get(moduleName);
157
158
  }
@@ -2,6 +2,9 @@
2
2
  "nightly": {
3
3
  "react-native": ["0.83", "0.84", "0.85", "0.86"]
4
4
  },
5
+ "0.11.x": {
6
+ "react-native": ["0.83", "0.84", "0.85", "0.86"]
7
+ },
5
8
  "0.10.x": {
6
9
  "react-native": ["0.83", "0.84", "0.85", "0.86"]
7
10
  },
@@ -5,5 +5,5 @@
5
5
  * version used to build the native part of the library in runtime. Remember to
6
6
  * keep this in sync with the version declared in `package.json`
7
7
  */
8
- export const jsVersion = '0.10.0';
8
+ export const jsVersion = '0.11.0-nightly-20260624-8b1d9d505';
9
9
  //# sourceMappingURL=jsVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsVersion"],"sourceRoot":"../../../src","sources":["debug/jsVersion.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["jsVersion"],"sourceRoot":"../../../src","sources":["debug/jsVersion.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,mCAAmC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
2
 
3
- export const IS_JEST = !!process.env.JEST_WORKER_ID;
3
+ export const IS_JEST = typeof globalThis.jest !== 'undefined' || process.env.NODE_ENV === 'test';
4
4
  //# sourceMappingURL=platformChecker.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["IS_JEST","process","env","JEST_WORKER_ID"],"sourceRoot":"../../src","sources":["platformChecker.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,MAAMA,OAAgB,GAAG,CAAC,CAACC,OAAO,CAACC,GAAG,CAACC,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["IS_JEST","globalThis","jest","process","env","NODE_ENV"],"sourceRoot":"../../src","sources":["platformChecker.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,MAAMA,OAAgB,GAC3B,OAAOC,UAAU,CAACC,IAAI,KAAK,WAAW,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM","ignoreList":[]}
@@ -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.10.0";
6
+ export declare const jsVersion = "0.11.0-nightly-20260624-8b1d9d505";
7
7
  //# sourceMappingURL=jsVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsVersion.d.ts","sourceRoot":"","sources":["../../../src/debug/jsVersion.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAW,CAAC"}
1
+ {"version":3,"file":"jsVersion.d.ts","sourceRoot":"","sources":["../../../src/debug/jsVersion.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,SAAS,sCAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"platformChecker.d.ts","sourceRoot":"","sources":["../../src/platformChecker.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,EAAE,OAAsC,CAAC"}
1
+ {"version":3,"file":"platformChecker.d.ts","sourceRoot":"","sources":["../../src/platformChecker.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,EAAE,OACqD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-worklets",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-nightly-20260624-8b1d9d505",
4
4
  "description": "The React Native multithreading library",
5
5
  "keywords": [
6
6
  "react-native",
@@ -81,7 +81,7 @@
81
81
  "@babel/core": "7.28.4",
82
82
  "@react-native-community/cli": "20.1.0",
83
83
  "@react-native/eslint-config": "0.83.0",
84
- "@react-native/jest-preset": "patch:@react-native/jest-preset@npm%3A0.85.2#~/.yarn/patches/@react-native-jest-preset-npm-0.85.2-d3275e8971.patch",
84
+ "@react-native/jest-preset": "patch:@react-native/jest-preset@npm%3A0.86.0#~/.yarn/patches/@react-native-jest-preset-npm-0.86.0-7a936108b4.patch",
85
85
  "@types/jest": "30.0.0",
86
86
  "@types/node": "24.7.0",
87
87
  "@types/react": "19.2.2",
@@ -93,7 +93,7 @@
93
93
  "knip": "5.61.3",
94
94
  "madge": "8.0.0",
95
95
  "react": "19.2.3",
96
- "react-native": "0.85.2",
96
+ "react-native": "0.86.0",
97
97
  "typescript": "5.9.3"
98
98
  },
99
99
  "main": "./lib/module/index",
@@ -5,4 +5,4 @@
5
5
  * version used to build the native part of the library in runtime. Remember to
6
6
  * keep this in sync with the version declared in `package.json`
7
7
  */
8
- export const jsVersion = '0.10.0';
8
+ export const jsVersion = '0.11.0-nightly-20260624-8b1d9d505';
@@ -1,3 +1,4 @@
1
1
  'use strict';
2
2
 
3
- export const IS_JEST: boolean = !!process.env.JEST_WORKER_ID;
3
+ export const IS_JEST: boolean =
4
+ typeof globalThis.jest !== 'undefined' || process.env.NODE_ENV === 'test';