* 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
* feat: Use `std::shared_ptr<Promise<T>>` instead of `std::future<T>` for callbacks that return a value
* Update FunctionType.ts
* chore: Lint
* Update Dispatcher.hpp
* chore: Update Podfile.lock
* feat: Create `Promise.hpp`
* feat: Add `JSIConverter+Exception`
* feat: Base for `Promise` and `Exception`
* fix: Implement Exception conversion
* Implement `Promise::awaitFuture`
* Revive `+Future`
* fix: Speed up creating `ThreadPool`
* fix: Make `+Future` also just use `+Promise` impl
* fix: Thread pool has 10 threads now.
* feat: Allow `ThreadPool` to grow dynamically
* chore: Format C++
* fix: Make Nitro core compile on non-react-native environments
Guards `CallInvokerDispatcher` only if CallInvoker is available
* docs: Remove "Markdown page example" lol
* 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