@react-native/codegen 0.77.0-nightly-20241002-d19a2178b → 0.77.0-nightly-20241004-309cdea33
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,8 +122,12 @@ const ModuleSpecClassDeclarationTemplate = ({
|
|
|
122
122
|
return `template <typename T>
|
|
123
123
|
class JSI_EXPORT ${hasteModuleName}CxxSpec : public TurboModule {
|
|
124
124
|
public:
|
|
125
|
-
jsi::Value
|
|
126
|
-
return delegate_.
|
|
125
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
126
|
+
return delegate_.create(rt, propName);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
130
|
+
return delegate_.getPropertyNames(runtime);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
static constexpr std::string_view kModuleName = "${moduleName}";
|
|
@@ -76,8 +76,12 @@ const ModuleSpecClassDeclarationTemplate = ({
|
|
|
76
76
|
return `template <typename T>
|
|
77
77
|
class JSI_EXPORT ${hasteModuleName}CxxSpec : public TurboModule {
|
|
78
78
|
public:
|
|
79
|
-
jsi::Value
|
|
80
|
-
return delegate_.
|
|
79
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
80
|
+
return delegate_.create(rt, propName);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
84
|
+
return delegate_.getPropertyNames(runtime);
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
static constexpr std::string_view kModuleName = "${moduleName}";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/codegen",
|
|
3
|
-
"version": "0.77.0-nightly-
|
|
3
|
+
"version": "0.77.0-nightly-20241004-309cdea33",
|
|
4
4
|
"description": "Code generation tools for React Native",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/parser": "^7.25.3",
|
|
33
33
|
"glob": "^7.1.1",
|
|
34
|
-
"hermes-parser": "0.
|
|
34
|
+
"hermes-parser": "0.24.0",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"jscodeshift": "^17.0.0",
|
|
37
37
|
"nullthrows": "^1.1.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
|
|
50
50
|
"@babel/preset-env": "^7.25.3",
|
|
51
51
|
"chalk": "^4.0.0",
|
|
52
|
-
"hermes-estree": "0.
|
|
52
|
+
"hermes-estree": "0.24.0",
|
|
53
53
|
"micromatch": "^4.0.4",
|
|
54
54
|
"prettier": "2.8.8",
|
|
55
55
|
"rimraf": "^3.0.2"
|