nitrogen 0.35.8 → 0.35.10
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/README.md +1 -1
- package/lib/syntax/kotlin/KotlinEnum.js +1 -1
- package/lib/syntax/kotlin/KotlinStruct.js +1 -1
- package/lib/views/CppHybridViewComponent.js +1 -1
- package/package.json +7 -7
- package/src/syntax/kotlin/KotlinEnum.ts +1 -1
- package/src/syntax/kotlin/KotlinStruct.ts +1 -1
- package/src/views/CppHybridViewComponent.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<a href="https://margelo.com">
|
|
1
|
+
<a href="https://nitro.margelo.com/docs/concepts/nitrogen">
|
|
2
2
|
<picture>
|
|
3
3
|
<source media="(prefers-color-scheme: dark)" srcset="../../docs/static/img/banner-nitrogen-dark.png" />
|
|
4
4
|
<source media="(prefers-color-scheme: light)" srcset="../../docs/static/img/banner-nitrogen-light.png" />
|
|
@@ -40,7 +40,7 @@ namespace ${cxxNamespace} {
|
|
|
40
40
|
using namespace facebook;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* The C++ JNI bridge between the C++ enum "${enumType.enumName}" and the
|
|
43
|
+
* The C++ JNI bridge between the C++ enum "${enumType.enumName}" and the Kotlin enum "${enumType.enumName}".
|
|
44
44
|
*/
|
|
45
45
|
struct J${enumType.enumName} final: public jni::JavaClass<J${enumType.enumName}> {
|
|
46
46
|
public:
|
|
@@ -109,7 +109,7 @@ namespace ${cxxNamespace} {
|
|
|
109
109
|
using namespace facebook;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* The C++ JNI bridge between the C++ struct "${structType.structName}" and the
|
|
112
|
+
* The C++ JNI bridge between the C++ struct "${structType.structName}" and the Kotlin data class "${structType.structName}".
|
|
113
113
|
*/
|
|
114
114
|
struct J${structType.structName} final: public jni::JavaClass<J${structType.structName}> {
|
|
115
115
|
public:
|
|
@@ -210,7 +210,7 @@ namespace ${namespace} {
|
|
|
210
210
|
|
|
211
211
|
${descriptorClassName}::${descriptorClassName}(const react::ComponentDescriptorParameters& parameters)
|
|
212
212
|
: ConcreteComponentDescriptor(parameters,
|
|
213
|
-
react::RawPropsParser(
|
|
213
|
+
react::RawPropsParser()) {}
|
|
214
214
|
|
|
215
215
|
std::shared_ptr<const react::Props> ${descriptorClassName}::cloneProps(const react::PropsParserContext& context,
|
|
216
216
|
${descriptorIndent} const std::shared_ptr<const react::Props>& props,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitrogen",
|
|
3
|
-
"version": "0.35.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.35.10",
|
|
4
|
+
"description": "Code generator for React Native Nitro Modules that turns TypeScript specs into C++, Swift, and Kotlin bindings.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"source": "src/index",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/mrousavy/nitro/issues"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://
|
|
24
|
+
"homepage": "https://nitro.margelo.com/docs/concepts/nitrogen",
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"registry": "https://registry.npmjs.org/"
|
|
27
27
|
},
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"start": "tsc && node lib/index.js",
|
|
31
31
|
"typecheck": "tsc --noEmit",
|
|
32
32
|
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
|
|
33
|
-
"lint-ci": "eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions",
|
|
33
|
+
"lint-ci": "eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions --max-warnings 0",
|
|
34
34
|
"release": "release-it"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"chalk": "^5.3.0",
|
|
38
|
-
"react-native-nitro-modules": "^0.35.
|
|
38
|
+
"react-native-nitro-modules": "^0.35.10",
|
|
39
39
|
"ts-morph": "^28.0.0",
|
|
40
40
|
"yargs": "^18.0.0",
|
|
41
|
-
"zod": "^4.
|
|
41
|
+
"zod": "^4.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^
|
|
44
|
+
"@types/node": "^26.0.0"
|
|
45
45
|
},
|
|
46
46
|
"release-it": {
|
|
47
47
|
"npm": {
|
|
@@ -49,7 +49,7 @@ namespace ${cxxNamespace} {
|
|
|
49
49
|
using namespace facebook;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* The C++ JNI bridge between the C++ enum "${enumType.enumName}" and the
|
|
52
|
+
* The C++ JNI bridge between the C++ enum "${enumType.enumName}" and the Kotlin enum "${enumType.enumName}".
|
|
53
53
|
*/
|
|
54
54
|
struct J${enumType.enumName} final: public jni::JavaClass<J${enumType.enumName}> {
|
|
55
55
|
public:
|
|
@@ -133,7 +133,7 @@ namespace ${cxxNamespace} {
|
|
|
133
133
|
using namespace facebook;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* The C++ JNI bridge between the C++ struct "${structType.structName}" and the
|
|
136
|
+
* The C++ JNI bridge between the C++ struct "${structType.structName}" and the Kotlin data class "${structType.structName}".
|
|
137
137
|
*/
|
|
138
138
|
struct J${structType.structName} final: public jni::JavaClass<J${structType.structName}> {
|
|
139
139
|
public:
|
|
@@ -257,7 +257,7 @@ namespace ${namespace} {
|
|
|
257
257
|
|
|
258
258
|
${descriptorClassName}::${descriptorClassName}(const react::ComponentDescriptorParameters& parameters)
|
|
259
259
|
: ConcreteComponentDescriptor(parameters,
|
|
260
|
-
react::RawPropsParser(
|
|
260
|
+
react::RawPropsParser()) {}
|
|
261
261
|
|
|
262
262
|
std::shared_ptr<const react::Props> ${descriptorClassName}::cloneProps(const react::PropsParserContext& context,
|
|
263
263
|
${descriptorIndent} const std::shared_ptr<const react::Props>& props,
|