@react-native/codegen 0.74.0-nightly-20231108-05d92bf2a → 0.74.0-nightly-20231110-9b33e752c

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.
@@ -122,7 +122,7 @@ public:
122
122
  protected:
123
123
  ${hasteModuleName}CxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
124
124
  : TurboModule(std::string{${hasteModuleName}CxxSpec::kModuleName}, jsInvoker),
125
- delegate_(static_cast<T*>(this), jsInvoker) {}
125
+ delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
126
126
 
127
127
  private:
128
128
  class Delegate : public ${hasteModuleName}CxxSpecJSI {
@@ -80,7 +80,7 @@ public:
80
80
  protected:
81
81
  ${hasteModuleName}CxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
82
82
  : TurboModule(std::string{${hasteModuleName}CxxSpec::kModuleName}, jsInvoker),
83
- delegate_(static_cast<T*>(this), jsInvoker) {}
83
+ delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
84
84
 
85
85
  private:
86
86
  class Delegate : public ${hasteModuleName}CxxSpecJSI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.74.0-nightly-20231108-05d92bf2a",
3
+ "version": "0.74.0-nightly-20231110-9b33e752c",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,8 +30,11 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@babel/parser": "^7.20.0",
33
+ "glob": "^7.1.1",
33
34
  "hermes-parser": "0.17.1",
35
+ "invariant": "^2.2.4",
34
36
  "jscodeshift": "^0.14.0",
37
+ "mkdirp": "^0.5.1",
35
38
  "nullthrows": "^1.1.1"
36
39
  },
37
40
  "devDependencies": {
@@ -46,11 +49,8 @@
46
49
  "@babel/plugin-transform-flow-strip-types": "^7.20.0",
47
50
  "@babel/preset-env": "^7.20.0",
48
51
  "chalk": "^4.0.0",
49
- "glob": "^7.1.1",
50
52
  "hermes-estree": "0.17.1",
51
- "invariant": "^2.2.4",
52
53
  "micromatch": "^4.0.4",
53
- "mkdirp": "^0.5.1",
54
54
  "prettier": "2.8.8",
55
55
  "rimraf": "^3.0.2"
56
56
  },