Commit Graph
166 Commits
Author SHA1 Message Date
Marc Rousavy 30c5775f71 Update JSICache.hpp 2024-08-06 01:02:46 +02:00
Marc Rousavy ef5d778bc6 Update JSICache.hpp 2024-08-06 01:02:40 +02:00
Marc Rousavy 56726f9662 fix: Pass more things by reference in nitrogen. 2024-08-06 01:02:30 +02:00
Marc Rousavy 0e51985a82 feat: Add tests for ArrayBuffer 2024-08-06 00:33:00 +02:00
Marc Rousavy 592ceb94ff feat: Support ArrayBuffers from JS, and fix JSIConverter<T> template 2024-08-06 00:22:26 +02:00
Marc Rousavy 31dfe1a050 Check if it even is hostobject/nativestate 2024-08-05 23:48:57 +02:00
Marc Rousavy f46081d807 fix: variant 2024-08-05 18:34:11 +02:00
Marc Rousavy 1c46d3056a fix: Fix includes 2024-08-05 18:33:04 +02:00
Marc Rousavy f723dbb45a Update JSIConverter+AnyMap.hpp 2024-08-05 18:30:00 +02:00
Marc Rousavy fef7f627c6 feat: Extract vector, map and optional 2024-08-05 18:26:40 +02:00
Marc Rousavy 9818b86b24 feat: Separate out JSIConverter files 2024-08-05 18:23:39 +02:00
Marc Rousavy 401743cdde perf: Make args check constexpr 2024-08-05 18:22:19 +02:00
Marc Rousavy 7b0a0b5736 Forward declare JSIConverter 2024-08-05 17:55:58 +02:00
Marc Rousavy 7f2ccbec0b fix: Move HybridContext.hpp to iOS 2024-08-05 17:44:40 +02:00
Marc Rousavy da52559049 fix: Fix some headers 2024-08-05 17:31:09 +02:00
Marc Rousavy 1140d5e693 Update ThreadPool.hpp 2024-08-05 16:37:17 +02:00
Marc Rousavy ee1e7c9646 fix: Make ThreadPool only two Threads big 2024-08-05 16:36:57 +02:00
Marc Rousavy 950ff037fc feat: Use efficient ThreadPool to speed up Promise creation 2024-08-05 16:32:55 +02:00
Marc RousavyandGitHub 273772c181 feat: Support optional parameters (#9)
* feat: Support optional parameters

* Update App.tsx

* Update HybridObject.hpp

* feat: Check min args count

* Try use optional approach

* fix: Count total optionals

* it works?

* Update NonDefaultArgsCount.hpp

* rename

* format

* fix: Codegen it

* Add better tests

* fix equals

* fix: Make `trailing_optionals_count_v` kinda work.

* fix: Remove `cvref`

* Run tests

* fix: Properly constexpr count trailing optionals only

* Improve callback tests
2024-08-05 02:03:00 +02:00
Marc Rousavy e2448d69be fix: Fix ::value 2024-08-02 22:11:38 +02:00
Marc Rousavy 87eae31207 feat: Move to templates 2024-08-02 21:45:48 +02:00
Marc Rousavy a522f09327 fix: Put template<...> on a separate line 2024-08-02 12:37:03 +02:00
Marc Rousavy 1ca53519c5 chore: Format code 2024-08-02 00:10:17 +02:00
Marc Rousavy e6dd4eb6b7 Nitro Modules info 2024-08-01 23:48:58 +02:00
Marc Rousavy c66064aa1f fix: Use atomic_size_t to prevent race conditions in OwningReference 2024-08-01 17:13:09 +02:00
Marc Rousavy ee41df2d99 fix: lock _mutex when lock()ing or comparing OwningReference 2024-08-01 17:09:28 +02:00
Marc Rousavy 49ed078d1e fix: Unify error catching in createMethod 2024-07-31 18:21:42 +02:00
Marc Rousavy 1c19ec8309 chore: Format 2024-07-31 18:11:57 +02:00
Marc Rousavy 1eda72abab feat: Provide object and method name when throwing errors 2024-07-31 18:11:29 +02:00
Marc Rousavy f96df1dd11 feat: Add tuple support to JSIConverter 2024-07-31 17:59:00 +02:00
Marc Rousavy 50507b693a fix: Fix imports 2024-07-31 17:41:25 +02:00
Marc Rousavy 9d69ba04ab chore: Run clang format 2024-07-31 17:39:56 +02:00
Marc Rousavy a104481e11 feat: Prettify a few edge cases in getFriendlyTypename() :) 2024-07-31 17:29:03 +02:00
Marc Rousavy f0844b047f feat: Properly check variant type at runtime 2024-07-31 17:19:39 +02:00
Marc Rousavy 37fe1a8cad feat: Support JS -> C++ variant parsing 2024-07-30 18:28:37 +02:00
Marc Rousavy 18d509ca56 feat: Map roundtrip (JS -> C++) 2024-07-30 18:01:06 +02:00
Marc Rousavy 4392e38b10 Simplify typing 2024-07-30 17:45:38 +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
Marc Rousavy 07204a1e6a feat: Support variant in JSIConverter 2024-07-30 16:51:02 +02:00
Marc Rousavy bc26711f21 replace is_same_v<T, void> -> is_void_v<T> 2024-07-30 13:51:39 +02:00
Marc Rousavy fff62048f7 fix: Fix void comparison 2024-07-30 13:50:23 +02:00
Marc Rousavy 039f745e6a fix: Try fixing runAsyncAwaitable 2024-07-30 13:43:54 +02:00
Marc Rousavy 404b125b8f fix: Kinda builds? 2024-07-30 13:31:22 +02:00
Marc Rousavy 26743e4bc1 feat: Rewrite NativeNitroModules to a bare (non-codegen'd) TurboModule to get Android to build 2024-07-30 13:26:17 +02:00
Marc Rousavy 504b07dcad fix: Try to make promise func JSIConverter 2024-07-30 13:09:28 +02:00
Marc Rousavy 2ee6e14da7 fix: Fix dispatcher lambda not mutable on promise 2024-07-30 13:00:46 +02:00
Marc Rousavy e6f84bee16 fix: Fix JS callbacks not using Dispatcher!!!!!
lol this broke a lot I cant believe I didnt catch this
2024-07-30 12:17:22 +02:00
Marc Rousavy 2114b123cb Lock JSICache deletion 2024-07-30 11:46:48 +02:00
Marc Rousavy 3e0279a71f feat: Create JSICacheReference for safer cache access 2024-07-30 11:41:01 +02:00