Marc Rousavy and GitHub
229e7d83db
feat: Create ObjectUtils for Object.freeze, Object.defineProperty, ... ( #967 )
...
* feat: Create `ObjectUtils` for `Object.freeze`, `Object.defineProperty`, ...
* Use Object.create
* Fix missing obj
* fix: Better error
* Cache
* fix: Actually cache by preventing copy
* Object.create is part of RN 78
* Use `defineProperty(...)` for `Dispatcher` too
* Optimize Dispatcher install
* Create `getGlobalFunction`
* feat: Use `defineGlobal(...)` to define our global props
* fix: Move the globals
* fix: Don't protect/freeze the globals in JS
we already do it in native.
2025-10-17 18:35:16 +02:00
Marc Rousavy
08e13c6b9c
chore: release 0.30.2
2025-10-16 12:33:19 +02:00
Marc Rousavy and GitHub
d834d76ef7
fix: Use JSIConverter<NativeState> for extracting Dispatcher ( #964 )
...
* chore: Split `JSIConverter<HybridObject>` and `JSIConverter<NativeState>`
* Use one header again
2025-10-16 12:29:28 +02:00
Marc Rousavy and GitHub
7f1d108e49
fix: Catch Dispatcher cast issues ( #963 )
...
* fix: Catch `Dispatcher` cast issues
* Update Dispatcher.cpp
* Update Dispatcher.cpp
* fix: Improve `Dispatcher` downcasting code
2025-10-16 11:59:28 +02:00
Marc Rousavy
67d2f83d92
chore: release 0.30.1
2025-10-15 17:33:52 +02:00
Marc Rousavy
0fa5dc0188
chore: release 0.30.0
2025-10-11 13:41:19 +02:00
Marc Rousavy
e2d20a6e41
chore: release 0.29.8
2025-10-01 12:32:01 +02:00
Marc Rousavy and GitHub
ca3c82ffd7
fix: Fix missing include for NULLABLE (NitroDefines.hpp) ( #914 )
2025-10-01 12:30:54 +02:00
Marc Rousavy
768d7dbb63
chore: Add [[maybe_unused]] flags to Logger debug checks
2025-09-30 15:09:51 +02:00
Marc Rousavy
c1fca198fe
chore: release 0.29.7
2025-09-30 14:54:50 +02:00
Marc Rousavy and GitHub
6dbb34f9d3
fix: Add NON_NULL, NULLABLE and CONTIGUOUS_MEMORY annotations on pointers ( #902 )
...
* chore: Add `NON_NULL` and `NULLABLE` annotations on all pointers
* feat: Add `CONTIGUOUS_MEMORY` and `NON_NULL`
* Create `InstanceMethod<...>`
* chore: Use `InstanceMethod<...>`
2025-09-26 13:45:54 +02:00
Marc Rousavy and GitHub
03e4c5098c
perf: Allow fast path for primitively copyable arrays ( #867 )
...
* perf: Allow fast path for primitively copyable arrays
* feat: Better fast copy to Swift
* idk if this makes a difference tbh
* More readable
* fix: Use `std::span` to make it safer
* fix: Allow fast path for simple `memcpy`
* Update NitroTest-Swift-Cxx-Bridge.hpp
* feat: Move to `FastVectorCopy`
* fix: Just check if `needsSpecialHandling`
* chore: Lint C++
* fix: Name prefixes
* fix: Replace `reserve` with alloc
2025-09-24 12:22:08 +02:00
Marc Rousavy and GitHub
39de15eb82
perf: Make C++ -> Swift Result<T> final ( #894 )
...
* perf: Make C++ -> Swift `Result<T>` final
* perf: Add some `noexcept` annotations to Result
* perf: Mark some classes as `final`
2025-09-22 15:02:35 +02:00
Patrick Kabwe and GitHub
f31f18def9
chore: Migrate Android packages from Java to Kotlin ( #892 )
...
- Convert all Android package classes to Kotlin
- Update documentation and README files
- Minor C++ registry improvements
2025-09-22 10:46:12 +02:00
Marc Rousavy
dd4564c834
chore: release 0.29.6
2025-09-15 17:55:00 +02:00
Marc Rousavy
44c979cac5
chore: release 0.29.5
2025-09-15 16:08:43 +02:00
Marc Rousavy
6292db8130
chore: release 0.29.4
2025-09-10 10:13:02 +02:00
Marc Rousavy
732381a172
chore: release 0.29.3
2025-09-04 15:02:34 +02:00
Marc Rousavy
283f292888
chore: release 0.29.2
2025-09-01 18:28:00 +02:00
Marc Rousavy
dc469824d6
chore: release 0.29.1
2025-08-29 20:41:49 +02:00
Marc Rousavy
4d105470be
chore: Release react-native-nitro-modules 0.29.0 (1/2)
2025-08-28 14:32:19 +02:00
Marc Rousavy and GitHub
a16c4dc389
fix: Throw better error message in default HybridObject constructor ( #836 )
...
* fix: Remove default `HybridObject` constructor
avoids confusion.
* fix: Add it back but with better error
2025-08-26 13:02:43 +02:00
Marc Rousavy
61e243f8c3
chore: release 0.28.1
2025-08-19 14:56:21 +02:00
Marc Rousavy and GitHub
39b8915f9a
feat: Add NitroModules.isHybridObject(...) ( #828 )
...
* feat: Add `NitroModules.isHybridObject(...)`
* chore: Move down
2025-08-19 12:14:46 +02:00
Marc Rousavy
77023a4555
chore: release 0.28.0
2025-08-14 15:49:18 +02:00
Marc Rousavy
efed5d25c7
chore: release 0.27.6
2025-08-12 15:41:05 +02:00
Marc Rousavy and GitHub
f4371fd286
perf: Use the shared() cache for JNI -> shared_ptr conversion ( #810 )
...
* perf: Use the `shared()` cache for JNI -> shared_ptr conversion
* fix: Fix `extractMap` test
* Lint
2025-08-11 18:06:18 +02:00
Marc Rousavy
c935913a1c
chore: release 0.27.5
2025-08-11 14:13:48 +02:00
Marc Rousavy and GitHub
d66f9d22c9
fix: Access shared() more safely by using jni::global_ref (virtual) ( #803 )
...
* fix: Access `shared()` more safely
* Update HybridObject.cpp
* fix: Call `initSharedBase` on JNI init
* fix: Nitrogen
* Revert "fix: Nitrogen"
This reverts commit c794810d2e6247fe4a158e35faa72600a4a0b5de.
* Revert "fix: Call `initSharedBase` on JNI init"
This reverts commit a5a8a66a9de3b9c467b9be067925fe489e22397b.
* fix: Override `shared` with JNI impl
* fix: Call `HybridBase` with `javaThis` to safely do `::shared()`
* fix: stringify can do JSON now
* fix: Lint
* fix: Fix `length` of JS func
* Update getTests.ts
* fix: Pin react properly
* fix: Throw
* Update JHybridObject.cpp
2025-08-11 13:58:44 +02:00
Marc Rousavy
4bce8763c7
chore: Release v0.27.4
2025-08-08 20:28:43 +02:00
Marc Rousavy
9d86d7fd3e
chore: release 0.27.3
2025-08-04 14:58:10 +02:00
Marc Rousavy
c1730ce2ab
chore: release 0.27.2
2025-07-28 19:48:22 +02:00
Marc Rousavy
a7523f02f7
chore: release 0.27.1
2025-07-28 14:48:01 +02:00
Marc Rousavy
8589606289
chore: release 0.27.0
2025-07-28 14:42:43 +02:00
Marc Rousavy and GitHub
ea39757017
feat: Add dispose() to Kotlin & Swift ( #770 )
...
* feat: Add `dispose()` to Kotlin & Swift
* Mark as `noexcept`
* No return
* Test `dispose()`
* fix assignments
* fix: Test `dispose()` over `optionalCallback()`
2025-07-25 12:22:20 +02:00
Marc Rousavy
675f511a8d
chore: release 0.26.4
2025-07-18 12:18:52 +02:00
Marc Rousavy and GitHub
1e863ecaaf
fix: Properly throw errors on Android now on RN 0.80 ( #741 )
2025-07-15 17:33:55 +02:00
Marc Rousavy and GitHub
c0af3f603f
feat: Attach jsi::MutableBuffer as jsi::NativeState to allow native buffer roundtrips ( #736 )
...
* feat: Attach `jsi::MutableBuffer` as `jsi::NativeState` for native buffer roundtrips
* feat: Cast to JS too
* Lint C++
* feat: Add `bounceArrayBuffer(...)` tests
* Update getTests.ts
2025-07-15 16:51:53 +02:00
Marc Rousavy
4f4bd828cb
chore: release 0.26.3
2025-06-30 18:07:02 +02:00
Marc Rousavy and GitHub
7fc091773e
chore: Slap [[maybe_unused]] onto debug-only parameters to clean up build logs ( #693 )
2025-06-11 18:09:00 +02:00
Marc Rousavy and GitHub
52ff673034
feat: Add ArrayBuffer.wrap(HardwareBuffer) API ( #691 )
...
* feat: Add `ArrayBuffer.wrap(HardwareBuffer)` API
* fix: Rename it
* Add `#if __ANDROID_API__ >= 26` check to C++
* Format
* feat: Implement `copyHardwareBuffer(..)`
* fix: Throw runtime error
* feat: Add `isHardwareBuffer` and `getHardwareBuffer()` for Kotlin
* fix: Register `copyHardwareBuffer` static JNI method properly
* feat: Add tests for "native" buffer
* Fix `_isLocked`
* chore: Move ArrayBuffer + HardwareBuffer to `HardwareBufferUtils`
* fix: It's called `getHardwareBufferBoxed()`
* fix: `@JvmStatic`
* feat: Implement `copyBuffer()` tests
* fix: Compile below API 26
* fix: Add SDK 26 check to `isHardwareBuffer` fast path
* fix: `getHardwareBufferBoxed` API 26
* fix: Slap good ol' API 26 `@RequiresApi` on it
2025-06-11 15:58:33 +02:00
Marc Rousavy
f4baff8e54
chore: release 0.26.2
2025-06-06 14:19:29 +02:00
Marc Rousavy and GitHub
78059cef5c
feat: Add AnyMap::getAllKeys() function ( #688 )
...
* feat: Add `AnyMap::getAllKeys()` function
* feat: Add `AnyMap.getAllKeys()` for Swift
* feat: Add `AnyMap.getAllKeys()` for Kotlin
* ctor explicit
* chore: Add tests for getMapKeys()
* fix: Fix sort order
2025-06-06 14:18:07 +02:00
Marc Rousavy
98fd4703c4
chore: release 0.26.1
2025-06-05 14:37:47 +02:00
Marc Rousavy and GitHub
72e7cabb92
fix: Clear Promise callbacks after resolve or reject to prevent JNI dtor error ( #683 )
2025-06-05 14:05:49 +02:00
Marc Rousavy
312f8a2aed
chore: release 0.26.0
2025-06-05 10:22:55 +02:00
Marc Rousavy and GitHub
6234dd25de
feat: Add Date type ( #678 )
...
* feat: Add support for `Date` types
* feat: Add Swift example
* Update Podfile.lock
* Use java.time.Instant
* fix: Fix bugs
* fix: Now it builds
* Update getTests.ts
* fix: Fix `Date.valueOf(..)` not using `this`
* Lint
* Simplify
* fix: Use Double
* Parse Swift Date
* fix: Use `double` now
* Use `margelo.nitro.chrono_time`
* feat: Add `Date` to docs
* ci: Remove pods cache
* Revert "ci: Remove pods cache"
This reverts commit b1c47f4fe0 .
* Update Podfile.lock
* Update Podfile.lock
* fix: Fix JInstant methods on Kotlin
They're called differently.
* feat: Improve the tests a bit
* valueOf -> getTime
2025-06-04 15:29:50 +02:00
Marc Rousavy
02c7c75377
chore: release 0.25.2
2025-03-19 21:39:47 +09:00
Jacek Pudysz and GitHub
94a702e480
fix: revert Object.freeze ( #612 )
2025-03-19 21:37:40 +09:00
Marc Rousavy
f39246332c
chore: release 0.25.1
2025-03-10 12:36:30 +01:00