Releases: mrousavy/nitro
Releases · mrousavy/nitro
Release 0.4.0
Release 0.3.0
0.3.0 (2024-08-09)
✨ Features
- Add
addNumbers(..)
andaddStrings(..)
tests (ideal for benchmarking) (d51766a) - Add custom path arg (aa8e900)
- Make
HybridObject
aNativeState
(#11) (86c3702), closes #12 - Speed up tests by making a timeouted Promise (e7a361e)
💨 Performance Improvements
- Do all
.is..
checks only in DEBUG (f5bd9e1)
🐛 Bug Fixes
- Add
nullptr
check to HybridObjectRegistry (ec910a7) - Filter duplicate files (ac7a089)
- Fix CMake
target_sources
being wrong (bc88e52) - Remove unresolved import on Android (f7646c3)
- Rename Swift bridge to
+ResultTypes
(de36e17) - Set up log-level in middleware (bc56a7c)
📚 Documentation
Release 0.1.7
0.1.7 (2024-08-07)
✨ Features
- Add
JSIConverter<struct>::canConvert
(f4c5581) - Implement
JSIConverter<enum>::canConvert
(for TS unions) - NOW WE COVERED ALL CASES/TESTS! 🥳 (0b0b149) - Support
JSIConverter<AnyMap>::canConvert
(+AnyValue
andunordered_map<string, T>
) (882054e) - Support dynamically converting
jsi::Value
to anyT
in avariant
by addingJSIConverter<T>::canConvert(...)
🎉 (c7b0cde)
🐛 Bug Fixes
- Add tests and fix some (872e77c)
- Also mark some function return types as optional (17299bd)
- Better error messages for variant and ArrayBuffer (f383d69)
- Fix
null
/undefined
not being parsed as optional (ef50863) - Fix a whole bunch of issues. (a0b6471)
- Fix broken tuple test, now works Float2 or Float3 (cf82da4)
- Fix duplicate types in
variant
(ecbd0ad) - Fix enum conversions
canConvert
lowercase (46c2676) - Fix generation of enums (31f90d0)
- Remove old
TestHybridObject
(97c838b) - Return
true
for empty array'scanConvert
(2910180)
Release 0.2.0
Release 0.1.5
0.1.5 (2024-08-05)
✨ Features
- Add A LOT of tests to
TestHybridObject
(7cbd66b) - Add all tests (47fce56)
- Add stub for web (9e4be9a)
- Add tests for
ArrayBuffer
(0e51985) - Extract vector, map and optional (fef7f62)
- Move to templates (87eae31)
- Separate out
JSIConverter
files (9818b86) - Support
ArrayBuffer
s from JS, and fixJSIConverter<T>
template (592ceb9) - Support optional parameters (#9) (273772c)
- Throw on anonymous objects (b3b1ebf)
- Use bun (#8) (5cd87f2)
- Use efficient
ThreadPool
to speed up Promise creation (950ff03)
💨 Performance Improvements
- Make args check constexpr (401743c)
🐛 Bug Fixes
- Fix
::value
(e2448d6) - Fix includes (1c46d30)
- Fix some headers (da52559)
- Fix testers (bd7ae8a)
- Make
calculateFibonacci
non const (14435b5) - Make
ThreadPool
only two Threads big (ee1e7c9) - Move
HybridContext.hpp
to iOS (7f2ccbe) - Put
template<...>
on a separate line (a522f09) - Use
workspace:^
syntax again (da4becd) - variant (f46081d)
Release 0.1.1
- Update package.json (6ddc8cb)
Release 0.1.0
0.1.0 (2024-08-01)
💨 Performance Improvements
- Also cache
getPropertyNames
(eddad79) - Make all
JSIConverter
callsinline
(b5d832c) - Pass function to Promise and JSIConverter as move (04f9e94)
- Speed up Dispatcher get calls (a6b69b3)
- Use
contains
instead ofcount
(756cd90) - Use
get
(assert) instead ofas
for faster perf! (0da06a7) - Use hashing functions for literal types (ab08c97)
✨ Features
- Add
ArrayBuffer
support (44608b8) - Add
hashString
with compile time length (1cc33e0) - Add
kind
(84ff92a) - Add
logLevel
and parse properly (74076e7) - Add
memorySize
to HybridObjects (47800ec) - Add
name
andequals
methods toHybridObject
(4262b79) - Add
override
prop (d524536) - Add
saveToFile(path)
(d784f1d) - Add fbjni, RN and Nitro as core libs (107bbe2)
- Add Kotlin (e2636b7)
- Add tuple support to
JSIConverter
(f96df1d) - Allow optional (c3d16ed)
- Allow passing in path to script (f93b63e)
- Also create Test obj on Android!! :))))) (23ecec0)
- Also log total alive instances (5c50d02)
- Always create C++ code (0e39f2a)
- Always write trailing newline (b3dbb0f)
- Android builds! (1a037c0)
- Build C++ libs ourselves instead of CodeGen (e2cd332)
- call into java (9c66382)
- Convert structs to and from JSI (a7eb13a)
- Create
AnyMap
(c043b61) - Create
Data
based ArrayBuffer for Swift (b310478) - Create
ForeignArrayBuffer
(cf2eb19) - Create
getHybridPart
to move this logic (eec426e) - Create
JSICacheReference
for safer cache access (3e0279a) - Create
OwningLock
to lock mutex (fc4eb15) - Create
react-native-nitro-image
(24167c3) - Create
RuntimeError
(23c4cbd) - Create fbjni C++ object (76bc9f1)
- Create fibonacci for 80 (613f288)
- Create files in
nitrogen/generated
(9e34873) - Create initializer and registry on Android (4115045)
- Create Kotlin code! (c22acb6)
- Create Kotlin structs (data classes) (952147a)
- Don't expose header, fix cycle (ec2be05)
- Drop the Swift stuff again (1380e3e)
- Forward declare structs and enums as well :) (d97d0d3)
- Generate
NitroImage+autolinking.rb
(b137a0f) - Generate all Swift result types in a single file (a071e17)
- Generate CMake autolinking setup as well (e9dda33)
- Generate gradle file as well (0eec2bd)
- Generate Swift protocol BASE (9e14e67)
- Generate to platform subfolders (7119d8f)
- Group files by platform, to prettify logging (99ac21d)
- Implement
==
forOwningReference
(803c7bf) - Implement a bunch of Swift types (8673069)
- Implement enum Java <-> C++ parsers (952730a)
- Implement HybridTestObject (04f4fe0)
- Implement Method, Parameter and Property for Kotlin (ff0c102)
- Inform JS GC about memory pressure if it is a HybridObject (2e503ab)
- It works! (f89a5f4)
- Load C++ library from Java (717f466)
- Log runtime thread ID (f6853f7)
- Log when files changed! (560e333)
- Make single required constructor for structs (83bd6f7)
- Map roundtrip (JS -> C++) (18d509c)
- Move
Hash.hpp
into core codebase (1186148) - Namespaces! (fb3317c)
- Non-duplicate forward declarations (066469b)
- Owning array buffer (9d301cc)
- Parse
nitro.json
file with Zod (dd3e559) - Prettify a few edge cases in...