Commit Graph
10 Commits
Author SHA1 Message Date
Marc RousavyandGitHub a42b35e478 feat: Expose Int64 and UInt64 - deprecate bigint (#1212)
* feat: Add `Int64` and `UInt64` types

* fix: Migrate `BigInt` to `Int64`

* feat: Support Int64 now

* Implement tests

* fix: AnyMap bigint APIs

* fix: Replace `bigint` remainings 1/2

* Update HybridTestObjectSwift.swift

* fix: Replace wrong case

* chore: Lint

* chore: Add test for uint lossy error

* Rename remaining pieces

* Update JAnyMap.cpp

* fix: Pass signedness to `AnyValue` Kotlin

* i thought I kinda did it

* fix: Remove UInt64 support from `AnyMap`

* fix: `static_cast` longs

* ok fix anymap tests at least

* fix: Parse `ULong` separately on Kotlin

* chore: Lint

* docs: Add docs for `bigint`
2026-02-10 19:44:31 +01:00
Marc RousavyandGitHub 7c5666ccba fix: Fix AnyMap not overwriting keys (#1204) 2026-02-04 20:21:11 +01:00
5e5312a89a perf: Add bulk converter for AnyMap.fromMap(...) for Kotlin (~29% faster) (#1118)
* perf: Use Bulk fromMap in AnyMap

* fix: lint

* fix: lint

* fix: lint

* fix: lint

* fix: linting

* chore: Make it a static initializer on native/C++

* fix: Proper static JNI (`jclass` argument)

---------

Co-authored-by: Marc Rousavy <me@mrousavy.com>
2025-12-21 11:47:45 +01:00
Marc RousavyandGitHub 0c4306cbd7 feat: Add explicit null type (#1032)
* feat: Add explicit `null` type

* Handle the cases

* Use NullType instead of `std::monostate`

* null is now variant! nice

* fix: Add missing imports

* fix: Fix podspec

* whoops now its fixed

* we're getting there...

* it builds on Android!

* fix: Add monostate back

* fix: Fix JNull lookup

* fix: Fix Swift build

* feat: Add tests for `null` type

* remove `UndefinedType`

* Now iOS builds???

* Nulls docs

* fix: Build with Xcode 26.1

* Revert "fix: Build with Xcode 26.1"

This reverts commit 41d1efea7a.
2025-11-10 22:31:22 +01:00
Marc RousavyandGitHub 6593698b54 feat: Add AnyMap <> Any converters and AnyMap::merge (#1012)
* feat: Add `merge` and `Any` helpers

* feat: Add merge maps test

* Update TestObject.nitro.ts

* Implement merge in kotlin

* fix: ctor

* feat: Add Any Value test

* Prevent accidental boxing twice

* fix: Make iOS work now

* fix: Fix `jni::local_ref` return

* feat: Add preallocated size ctor to Kotlin

* rename
2025-10-30 19:08:03 +01:00
Marc RousavyandGitHub 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 9d69ba04ab chore: Run clang format 2024-07-31 17:39:56 +02:00
Marc Rousavy 37fe1a8cad feat: Support JS -> C++ variant parsing 2024-07-30 18:28:37 +02:00
Marc Rousavy 4a073978e4 YAY Maps work!!! :) 2024-07-30 17:38:43 +02:00
Marc Rousavy c043b61cc6 feat: Create AnyMap 2024-07-30 16:51:09 +02:00