@react-native/codegen 0.77.0-nightly-20241120-a865975ce → 0.77.0-nightly-20241122-e4d8c9678

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.
@@ -71,7 +71,7 @@ function generateSetter(
71
71
  ) {
72
72
  const eventChain = usingEvent
73
73
  ? `$event.${[...propertyParts, propertyName].join('.')}`
74
- : [propertyParts, propertyName].join('.');
74
+ : [...propertyParts, propertyName].join('.');
75
75
  return `${variableName}.setProperty(runtime, "${propertyName}", ${valueMapper(
76
76
  eventChain,
77
77
  )});`;
@@ -121,7 +121,7 @@ function generateArraySetter(
121
121
  ) {
122
122
  const eventChain = usingEvent
123
123
  ? `$event.${[...propertyParts, propertyName].join('.')}`
124
- : [propertyParts, propertyName].join('.');
124
+ : [...propertyParts, propertyName].join('.');
125
125
  const indexVar = `${propertyName}Index`;
126
126
  const innerLoopVar = `${propertyName}Value`;
127
127
  return `
@@ -104,7 +104,7 @@ function generateSetter(
104
104
  ) {
105
105
  const eventChain = usingEvent
106
106
  ? `$event.${[...propertyParts, propertyName].join('.')}`
107
- : [propertyParts, propertyName].join('.');
107
+ : [...propertyParts, propertyName].join('.');
108
108
  return `${variableName}.setProperty(runtime, "${propertyName}", ${valueMapper(
109
109
  eventChain,
110
110
  )});`;
@@ -157,7 +157,7 @@ function generateArraySetter(
157
157
  ): string {
158
158
  const eventChain = usingEvent
159
159
  ? `$event.${[...propertyParts, propertyName].join('.')}`
160
- : [propertyParts, propertyName].join('.');
160
+ : [...propertyParts, propertyName].join('.');
161
161
  const indexVar = `${propertyName}Index`;
162
162
  const innerLoopVar = `${propertyName}Value`;
163
163
  return `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.77.0-nightly-20241120-a865975ce",
3
+ "version": "0.77.0-nightly-20241122-e4d8c9678",
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.24.0",
34
+ "hermes-parser": "0.25.1",
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.24.0",
52
+ "hermes-estree": "0.25.1",
53
53
  "micromatch": "^4.0.4",
54
54
  "prettier": "2.8.8",
55
55
  "rimraf": "^3.0.2"