react-native-nitro-modules 0.25.1 → 0.25.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.
@@ -79,17 +79,11 @@ jsi::Value HybridObject::toObject(jsi::Runtime& runtime) {
79
79
  object.setProperty(runtime, "__type", jsi::String::createFromUtf8(runtime, "NativeState<" + std::string(_name) + ">"));
80
80
  #endif
81
81
 
82
- #ifdef NITRO_DEBUG
83
- // 8. Freeze the object to prevent accidentally setting wrong props on it that do nothing.
84
- jsi::Function freeze = objectConstructor.getPropertyAsFunction(runtime, "freeze");
85
- freeze.call(runtime, object);
86
- #endif
87
-
88
- // 9. Throw a jsi::WeakObject pointing to our object into cache so subsequent calls can use it from cache
82
+ // 8. Throw a jsi::WeakObject pointing to our object into cache so subsequent calls can use it from cache
89
83
  JSICacheReference cache = JSICache::getOrCreateCache(runtime);
90
84
  _objectCache[&runtime] = cache.makeShared(jsi::WeakObject(runtime, object));
91
85
 
92
- // 10. Return it!
86
+ // 9. Return it!
93
87
  return object;
94
88
  }
95
89
 
@@ -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.25.1"
12
+ #define NITRO_VERSION "0.25.2"
13
13
 
14
14
  // Sets whether to use debug or optimized production build flags
15
15
  #ifdef DEBUG
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-modules",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
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",