react-native-nitro-modules 0.33.3 → 0.33.4

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.
@@ -9,7 +9,7 @@
9
9
  #define NitroDefines_h
10
10
 
11
11
  // Sets the version of the native Nitro core library
12
- #define NITRO_VERSION "0.33.3"
12
+ #define NITRO_VERSION "0.33.4"
13
13
 
14
14
  // Sets whether to use debug or optimized production build flags
15
15
  #ifdef DEBUG
@@ -17,9 +17,21 @@ template <typename T>
17
17
  struct CachedProp {
18
18
  public:
19
19
  T value;
20
- BorrowingReference<jsi::Value> jsiValue;
21
20
  bool isDirty = false;
22
21
 
22
+ // Default constructor
23
+ CachedProp() = default;
24
+ // Constructor with value
25
+ CachedProp(T&& value, BorrowingReference<jsi::Value>&& jsiValue)
26
+ : value(std::move(value)), isDirty(true), jsiValue(std::move(jsiValue)) {}
27
+ // Copy/Move/Destruct
28
+ CachedProp(const CachedProp&) = default;
29
+ CachedProp(CachedProp&&) = default;
30
+ ~CachedProp() = default;
31
+
32
+ private:
33
+ BorrowingReference<jsi::Value> jsiValue;
34
+
23
35
  public:
24
36
  bool equals(jsi::Runtime& runtime, const jsi::Value& other) const {
25
37
  if (jsiValue == nullptr) {
@@ -40,7 +52,7 @@ public:
40
52
  JSICacheReference cache = JSICache::getOrCreateCache(runtime);
41
53
  cached = cache.makeShared(jsi::Value(runtime, value));
42
54
  }
43
- return CachedProp<T>(std::move(converted), std::move(cached), /* isDirty */ true);
55
+ return CachedProp<T>(std::move(converted), std::move(cached));
44
56
  }
45
57
  };
46
58
 
@@ -8,7 +8,7 @@
8
8
  #ifdef RCT_NEW_ARCH_ENABLED
9
9
 
10
10
  // New Architecture uses the Codegen'd Spec (TurboModule)
11
- #import "NitroModulesSpec.h"
11
+ #import <NitroModulesSpec/NitroModulesSpec.h>
12
12
  @interface NativeNitroModules : NSObject <NativeNitroModulesSpec>
13
13
  @end
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-modules",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "description": "Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",