react-native-nitro-sse 1.6.1 → 1.6.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.
package/README.md CHANGED
@@ -33,6 +33,7 @@ npm install react-native-nitro-sse react-native-nitro-modules
33
33
 
34
34
  | react-native-nitro-sse | react-native-nitro-modules |
35
35
  | :--------------------- | :------------------------- |
36
+ | **1.6.2** | **0.35.2** |
36
37
  | **1.4.0 - 1.6.1** | **0.35.0** |
37
38
  | **1.2.2 - 1.3.1** | **0.34.1** |
38
39
  | **1.2.0 - 1.2.1** | **0.34.0** |
package/nitro.json CHANGED
@@ -9,8 +9,14 @@
9
9
  },
10
10
  "autolinking": {
11
11
  "NitroSse": {
12
- "swift": "NitroSse",
13
- "kotlin": "NitroSse"
12
+ "ios": {
13
+ "language": "swift",
14
+ "implementationClassName": "NitroSse"
15
+ },
16
+ "android": {
17
+ "language": "kotlin",
18
+ "implementationClassName": "NitroSse"
19
+ }
14
20
  }
15
21
  },
16
22
  "ignorePaths": ["node_modules"]
@@ -27,7 +27,7 @@ namespace margelo::nitro::nitrosse {
27
27
  */
28
28
  struct JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____: public jni::JavaClass<JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____> {
29
29
  public:
30
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____;";
30
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string_____;";
31
31
 
32
32
  public:
33
33
  /**
@@ -122,7 +122,7 @@ namespace margelo::nitro::nitrosse {
122
122
  }
123
123
 
124
124
  public:
125
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______cxx;";
125
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______cxx;";
126
126
  static void registerNatives() {
127
127
  registerHybrid({makeNativeMethod("invoke_cxx", JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__unordered_map_std__string__std__string______cxx::invoke_cxx)});
128
128
  }
@@ -30,7 +30,7 @@ namespace margelo::nitro::nitrosse {
30
30
  */
31
31
  struct JFunc_void_std__vector_SseEvent_: public jni::JavaClass<JFunc_void_std__vector_SseEvent_> {
32
32
  public:
33
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_void_std__vector_SseEvent_;";
33
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_void_std__vector_SseEvent_;";
34
34
 
35
35
  public:
36
36
  /**
@@ -84,7 +84,7 @@ namespace margelo::nitro::nitrosse {
84
84
  }
85
85
 
86
86
  public:
87
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_void_std__vector_SseEvent__cxx;";
87
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/Func_void_std__vector_SseEvent__cxx;";
88
88
  static void registerNatives() {
89
89
  registerHybrid({makeNativeMethod("invoke_cxx", JFunc_void_std__vector_SseEvent__cxx::invoke_cxx)});
90
90
  }
@@ -19,7 +19,7 @@ namespace margelo::nitro::nitrosse {
19
19
  */
20
20
  struct JHttpMethod final: public jni::JavaClass<JHttpMethod> {
21
21
  public:
22
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HttpMethod;";
22
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HttpMethod;";
23
23
 
24
24
  public:
25
25
  /**
@@ -21,11 +21,11 @@ namespace margelo::nitro::nitrosse {
21
21
  class JHybridNitroSseSpec: public virtual HybridNitroSseSpec, public virtual JHybridObject {
22
22
  public:
23
23
  struct JavaPart: public jni::JavaClass<JavaPart, JHybridObject::JavaPart> {
24
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HybridNitroSseSpec;";
24
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HybridNitroSseSpec;";
25
25
  std::shared_ptr<JHybridNitroSseSpec> getJHybridNitroSseSpec();
26
26
  };
27
27
  struct CxxPart: public jni::HybridClass<CxxPart, JHybridObject::CxxPart> {
28
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HybridNitroSseSpec$CxxPart;";
28
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/HybridNitroSseSpec$CxxPart;";
29
29
  static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject> jThis);
30
30
  static void registerNatives();
31
31
  using HybridBase::HybridBase;
@@ -30,7 +30,7 @@ namespace margelo::nitro::nitrosse {
30
30
  */
31
31
  struct JSseConfig final: public jni::JavaClass<JSseConfig> {
32
32
  public:
33
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseConfig;";
33
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseConfig;";
34
34
 
35
35
  public:
36
36
  /**
@@ -24,7 +24,7 @@ namespace margelo::nitro::nitrosse {
24
24
  */
25
25
  struct JSseEvent final: public jni::JavaClass<JSseEvent> {
26
26
  public:
27
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseEvent;";
27
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseEvent;";
28
28
 
29
29
  public:
30
30
  /**
@@ -19,7 +19,7 @@ namespace margelo::nitro::nitrosse {
19
19
  */
20
20
  struct JSseEventType final: public jni::JavaClass<JSseEventType> {
21
21
  public:
22
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseEventType;";
22
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseEventType;";
23
23
 
24
24
  public:
25
25
  /**
@@ -22,7 +22,7 @@ namespace margelo::nitro::nitrosse {
22
22
  */
23
23
  struct JSseStats final: public jni::JavaClass<JSseStats> {
24
24
  public:
25
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseStats;";
25
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/SseStats;";
26
26
 
27
27
  public:
28
28
  /**
@@ -29,9 +29,9 @@ int initialize(JavaVM* vm) {
29
29
  }
30
30
 
31
31
  struct JHybridNitroSseSpecImpl: public jni::JavaClass<JHybridNitroSseSpecImpl, JHybridNitroSseSpec::JavaPart> {
32
- static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/NitroSse;";
32
+ static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/nitrosse/NitroSse;";
33
33
  static std::shared_ptr<JHybridNitroSseSpec> create() {
34
- static auto constructorFn = javaClassStatic()->getConstructor<JHybridNitroSseSpecImpl::javaobject()>();
34
+ static const auto constructorFn = javaClassStatic()->getConstructor<JHybridNitroSseSpecImpl::javaobject()>();
35
35
  jni::local_ref<JHybridNitroSseSpec::JavaPart> javaPart = javaClassStatic()->newObject(constructorFn);
36
36
  return javaPart->getJHybridNitroSseSpec();
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-sse",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "High-performance Server-Sent Events (SSE) for React Native, powered by Nitro Modules.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -84,12 +84,12 @@
84
84
  "eslint-plugin-prettier": "^5.5.4",
85
85
  "jest": "^29.7.0",
86
86
  "lefthook": "^2.0.3",
87
- "nitrogen": "0.35.0",
87
+ "nitrogen": "0.35.2",
88
88
  "prettier": "^2.8.8",
89
89
  "react": "19.2.0",
90
90
  "react-native": "0.83.0",
91
91
  "react-native-builder-bob": "^0.40.17",
92
- "react-native-nitro-modules": "0.35.0",
92
+ "react-native-nitro-modules": "0.35.2",
93
93
  "release-it": "^19.0.4",
94
94
  "turbo": "^2.5.6",
95
95
  "typescript": "^5.9.2"
@@ -97,7 +97,7 @@
97
97
  "peerDependencies": {
98
98
  "react": "*",
99
99
  "react-native": "*",
100
- "react-native-nitro-modules": "0.35.0"
100
+ "react-native-nitro-modules": ">= 0.35.2"
101
101
  },
102
102
  "workspaces": [
103
103
  "example"
@@ -177,4 +177,4 @@
177
177
  ],
178
178
  "version": "0.57.0"
179
179
  }
180
- }
180
+ }