* feat: Create `PropNameID` Cache
* Impl PropNameID
* fix: Use `const jsi::PropNameID&` instead of `BorrowingReference`
* perf: Use `PropNameIDCache` everywhere internally
* fix: Make use of `PropNameIDCache` in custom user defined structs
* fix: Use `PropNameIDCache` for Hybrid Views too
* fix: `jsi::Runtime` deref
* fix: Allow `JSICache` to use itself by caching itself first
* fix: Remove `allowCache` flag
* perf: Avoid `BorrowingReference<T>` copy and use `const T&`
* perf: Use `PropNameIDCache` inside `defineProperty(...)`
* docs: Add docs
* chore: Split `Object`, `Promise`, `Date` and `Error` under `CommonGlobals.hpp`
* feat: Use it everywhere
* fix: Implement them
* fix: `resolved` -> `resolve`
* 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.
* chore: Add `NON_NULL` and `NULLABLE` annotations on all pointers
* feat: Add `CONTIGUOUS_MEMORY` and `NON_NULL`
* Create `InstanceMethod<...>`
* chore: Use `InstanceMethod<...>`
* fix: Add additional nullptr check to `make_shared_from_jni` function
* fix: Allow move `&&` and forward
* Update JNISharedPtr.hpp
* fix: Add copy ctor
* fix: Avoid `emplace` if there can be duplicates
* Update JNISharedPtr.hpp
* fix: Don't call `release()` on global_ref!
* fix: Use `const &` to keep it lvalue
* Also check `cthis()`
* feat: Create `Sync<T>`
* Return
* Make it return number
* feat: Add `isSync` check...
* check
* Impl
* feat: Add `JSCallback`
* perf: Store `Dispatcher` in cache if really missed
* I think it builds now
* fix memory
* fix: Use `isAsync`
* Rename
* fix: Impl `callHybridFunction` again
* fix: Avoid forward decl
* Docs
* feat: Cache `regex` in `NitroTypeInfo`
* Update NitroTypeInfo.cpp
* perf: Make `Dispatcher` a `weak_ptr`
* Some formating
* fix: Fix styling in Benchmarks
* feat: Test if callbackSync returns same number
* fix: Fix warning in `toString()`
* Update Sync.ts
* perf: Allow `std::forward<...>`
* fix: Reject Promise with timeout if it gets destroyed
If a Promise gets destroyed without ever being resolved or rejected, it goes stale.
This PR fixes this and rejects a Promise with a timeout error if it gets destructed and is still pending
* Add promise typename
* Reject swift promise as well
* Update Promise.hpp
* fix: Build
* Update Dispatcher.cpp
* fix: Also reject `JPromise` if it gets destroyed
* fix: Fix wrong include..?
* fix: Reimplement NitroLogger as a platform-specific logger
* fix: Copy args, and use proper tag
* fix: Fix sprintf crash because of wrong format argument
* fix: Fix Logger usage on iOS