nitrogen 0.35.1-beta.0 → 0.35.1-beta.2

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.
@@ -24,7 +24,7 @@ export function createHybridObjectIntializer() {
24
24
  continue;
25
25
  }
26
26
  switch (implementation.language) {
27
- case 'cpp': {
27
+ case 'c++': {
28
28
  // Autolink a C++ HybridObject!
29
29
  const { cppCode, requiredImports } = createCppHybridObjectRegistration({
30
30
  hybridObjectName: hybridObjectName,
@@ -20,7 +20,7 @@ export function createHybridObjectIntializer() {
20
20
  continue;
21
21
  }
22
22
  switch (implementation.language) {
23
- case 'cpp': {
23
+ case 'c++': {
24
24
  // Autolink a C++ HybridObject!
25
25
  const { cppCode, requiredImports } = createCppHybridObjectRegistration({
26
26
  hybridObjectName: hybridObjectName,
@@ -1,25 +1,25 @@
1
1
  import { z } from 'zod';
2
2
  declare const autolinkingAllImplementationSchema: z.ZodObject<{
3
- language: z.ZodLiteral<"cpp">;
3
+ language: z.ZodLiteral<"c++">;
4
4
  implementationClassName: z.ZodString;
5
5
  }, z.core.$strip>;
6
6
  declare const autolinkingIOSImplementationSchema: z.ZodObject<{
7
7
  language: z.ZodEnum<{
8
- cpp: "cpp";
8
+ "c++": "c++";
9
9
  swift: "swift";
10
10
  }>;
11
11
  implementationClassName: z.ZodString;
12
12
  }, z.core.$strip>;
13
13
  declare const autolinkingAndroidImplementationSchema: z.ZodObject<{
14
14
  language: z.ZodEnum<{
15
- cpp: "cpp";
15
+ "c++": "c++";
16
16
  kotlin: "kotlin";
17
17
  }>;
18
18
  implementationClassName: z.ZodString;
19
19
  }, z.core.$strip>;
20
20
  declare const autolinkingPlatformImplementationSchema: z.ZodObject<{
21
21
  language: z.ZodEnum<{
22
- cpp: "cpp";
22
+ "c++": "c++";
23
23
  swift: "swift";
24
24
  kotlin: "kotlin";
25
25
  }>;
@@ -27,26 +27,26 @@ declare const autolinkingPlatformImplementationSchema: z.ZodObject<{
27
27
  }, z.core.$strip>;
28
28
  declare const autolinkingHybridObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
29
29
  all: z.ZodOptional<z.ZodObject<{
30
- language: z.ZodLiteral<"cpp">;
30
+ language: z.ZodLiteral<"c++">;
31
31
  implementationClassName: z.ZodString;
32
32
  }, z.core.$strip>>;
33
33
  ios: z.ZodOptional<z.ZodObject<{
34
34
  language: z.ZodEnum<{
35
- cpp: "cpp";
35
+ "c++": "c++";
36
36
  swift: "swift";
37
37
  }>;
38
38
  implementationClassName: z.ZodString;
39
39
  }, z.core.$strip>>;
40
40
  android: z.ZodOptional<z.ZodObject<{
41
41
  language: z.ZodEnum<{
42
- cpp: "cpp";
42
+ "c++": "c++";
43
43
  kotlin: "kotlin";
44
44
  }>;
45
45
  implementationClassName: z.ZodString;
46
46
  }, z.core.$strip>>;
47
47
  }, z.core.$catchall<z.ZodObject<{
48
48
  language: z.ZodEnum<{
49
- cpp: "cpp";
49
+ "c++": "c++";
50
50
  swift: "swift";
51
51
  kotlin: "kotlin";
52
52
  }>;
@@ -57,19 +57,19 @@ declare const autolinkingHybridObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
57
57
  kotlin: z.ZodOptional<z.ZodString>;
58
58
  }, z.core.$strict>, z.ZodTransform<{
59
59
  [x: string]: {
60
- language: "cpp" | "swift" | "kotlin";
60
+ language: "c++" | "swift" | "kotlin";
61
61
  implementationClassName: string;
62
62
  };
63
63
  all?: {
64
- language: "cpp";
64
+ language: "c++";
65
65
  implementationClassName: string;
66
66
  } | undefined;
67
67
  ios?: {
68
- language: "cpp" | "swift";
68
+ language: "c++" | "swift";
69
69
  implementationClassName: string;
70
70
  } | undefined;
71
71
  android?: {
72
- language: "cpp" | "kotlin";
72
+ language: "c++" | "kotlin";
73
73
  implementationClassName: string;
74
74
  } | undefined;
75
75
  }, {
@@ -93,26 +93,26 @@ export declare const NitroUserConfigSchema: z.ZodObject<{
93
93
  }, z.core.$strip>;
94
94
  autolinking: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
95
95
  all: z.ZodOptional<z.ZodObject<{
96
- language: z.ZodLiteral<"cpp">;
96
+ language: z.ZodLiteral<"c++">;
97
97
  implementationClassName: z.ZodString;
98
98
  }, z.core.$strip>>;
99
99
  ios: z.ZodOptional<z.ZodObject<{
100
100
  language: z.ZodEnum<{
101
- cpp: "cpp";
101
+ "c++": "c++";
102
102
  swift: "swift";
103
103
  }>;
104
104
  implementationClassName: z.ZodString;
105
105
  }, z.core.$strip>>;
106
106
  android: z.ZodOptional<z.ZodObject<{
107
107
  language: z.ZodEnum<{
108
- cpp: "cpp";
108
+ "c++": "c++";
109
109
  kotlin: "kotlin";
110
110
  }>;
111
111
  implementationClassName: z.ZodString;
112
112
  }, z.core.$strip>>;
113
113
  }, z.core.$catchall<z.ZodObject<{
114
114
  language: z.ZodEnum<{
115
- cpp: "cpp";
115
+ "c++": "c++";
116
116
  swift: "swift";
117
117
  kotlin: "kotlin";
118
118
  }>;
@@ -123,19 +123,19 @@ export declare const NitroUserConfigSchema: z.ZodObject<{
123
123
  kotlin: z.ZodOptional<z.ZodString>;
124
124
  }, z.core.$strict>, z.ZodTransform<{
125
125
  [x: string]: {
126
- language: "cpp" | "swift" | "kotlin";
126
+ language: "c++" | "swift" | "kotlin";
127
127
  implementationClassName: string;
128
128
  };
129
129
  all?: {
130
- language: "cpp";
130
+ language: "c++";
131
131
  implementationClassName: string;
132
132
  } | undefined;
133
133
  ios?: {
134
- language: "cpp" | "swift";
134
+ language: "c++" | "swift";
135
135
  implementationClassName: string;
136
136
  } | undefined;
137
137
  android?: {
138
- language: "cpp" | "kotlin";
138
+ language: "c++" | "kotlin";
139
139
  implementationClassName: string;
140
140
  } | undefined;
141
141
  }, {
@@ -5,17 +5,17 @@ const isNotReservedKeyword = (val) => !['core', 'nitro', 'NitroModules'].include
5
5
  const isReservedKeywordError = {
6
6
  message: `This value is reserved and cannot be used!`,
7
7
  };
8
- const autolinkingLanguageSchema = z.enum(['cpp', 'swift', 'kotlin']);
8
+ const autolinkingLanguageSchema = z.enum(['c++', 'swift', 'kotlin']);
9
9
  const autolinkingAllImplementationSchema = z.object({
10
- language: z.literal('cpp'),
10
+ language: z.literal('c++'),
11
11
  implementationClassName: z.string(),
12
12
  });
13
13
  const autolinkingIOSImplementationSchema = z.object({
14
- language: z.enum(['cpp', 'swift']),
14
+ language: z.enum(['c++', 'swift']),
15
15
  implementationClassName: z.string(),
16
16
  });
17
17
  const autolinkingAndroidImplementationSchema = z.object({
18
- language: z.enum(['cpp', 'kotlin']),
18
+ language: z.enum(['c++', 'kotlin']),
19
19
  implementationClassName: z.string(),
20
20
  });
21
21
  const autolinkingPlatformImplementationSchema = z.object({
@@ -73,7 +73,7 @@ function normalizeLegacyAutolinkingHybridObject(value) {
73
73
  if (value.cpp != null) {
74
74
  return {
75
75
  all: {
76
- language: 'cpp',
76
+ language: 'c++',
77
77
  implementationClassName: value.cpp,
78
78
  },
79
79
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitrogen",
3
- "version": "0.35.1-beta.0",
3
+ "version": "0.35.1-beta.2",
4
4
  "description": "The code-generator for react-native-nitro-modules.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "chalk": "^5.3.0",
38
- "react-native-nitro-modules": "^0.35.1-beta.0",
38
+ "react-native-nitro-modules": "^0.35.1-beta.2",
39
39
  "ts-morph": "^27.0.0",
40
40
  "yargs": "^18.0.0",
41
41
  "zod": "^4.0.5"
@@ -35,7 +35,7 @@ export function createHybridObjectIntializer(): SourceFile[] {
35
35
  }
36
36
 
37
37
  switch (implementation.language) {
38
- case 'cpp': {
38
+ case 'c++': {
39
39
  // Autolink a C++ HybridObject!
40
40
  const { cppCode, requiredImports } = createCppHybridObjectRegistration({
41
41
  hybridObjectName: hybridObjectName,
@@ -30,7 +30,7 @@ export function createHybridObjectIntializer(): [ObjcFile, SwiftFile] | [] {
30
30
  }
31
31
 
32
32
  switch (implementation.language) {
33
- case 'cpp': {
33
+ case 'c++': {
34
34
  // Autolink a C++ HybridObject!
35
35
  const { cppCode, requiredImports } = createCppHybridObjectRegistration({
36
36
  hybridObjectName: hybridObjectName,
@@ -9,20 +9,20 @@ const isReservedKeywordError = {
9
9
  message: `This value is reserved and cannot be used!`,
10
10
  }
11
11
 
12
- const autolinkingLanguageSchema = z.enum(['cpp', 'swift', 'kotlin'])
12
+ const autolinkingLanguageSchema = z.enum(['c++', 'swift', 'kotlin'])
13
13
 
14
14
  const autolinkingAllImplementationSchema = z.object({
15
- language: z.literal('cpp'),
15
+ language: z.literal('c++'),
16
16
  implementationClassName: z.string(),
17
17
  })
18
18
 
19
19
  const autolinkingIOSImplementationSchema = z.object({
20
- language: z.enum(['cpp', 'swift']),
20
+ language: z.enum(['c++', 'swift']),
21
21
  implementationClassName: z.string(),
22
22
  })
23
23
 
24
24
  const autolinkingAndroidImplementationSchema = z.object({
25
- language: z.enum(['cpp', 'kotlin']),
25
+ language: z.enum(['c++', 'kotlin']),
26
26
  implementationClassName: z.string(),
27
27
  })
28
28
 
@@ -95,7 +95,7 @@ function normalizeLegacyAutolinkingHybridObject(
95
95
  if (value.cpp != null) {
96
96
  return {
97
97
  all: {
98
- language: 'cpp',
98
+ language: 'c++',
99
99
  implementationClassName: value.cpp,
100
100
  },
101
101
  }