- Add support SafeBuffer
- Consider undefined/null for rust type Option
- doc update
- Fix segfault exposed due to node api implementation changes #259
- Add cross compilation support to nj-cli. (#182).
- Add option to configure a custom logging backend (#174)
- Note: without this global initialization applications need to setup their own logging infrastructure at startup
- See the logging example that uses a custom logger
- Added support for automatic conversion of structs and enums into the JS representation by decorating their definition with
#[node_bindgen]
(#148 and #155) - Defined a
NjError::Native
Error payload, which allows errors to return structured data to JS Result<T, E>
converts the error value to JS usingTryIntoJs
for structured error payloads- Add support for passing tuples between Node and Rust (#142)
- Bump electron from 9.3.1 to 9.4.0 in /examples/electron (#135)
- Update JSArrayBuffer to be usable in
env.convert_to_rust
(#136) - Added missing unsigned and signed integer conversions to JS #158
serde_json
is automatically serialized to it's JS representation (#159)uuid
s are automatically serialized to JS (#160)
- update trybuild to point to infinyon repo
- update dependencies
- Bump dependency on nj-core to 4.1.3
- Rename
to_js
tointo_js
inpub trait IntoJs
- Fix lifetime in
JSValue
for&str
.
- Implement
JSArrayBuffer
with managed lifecycle of ofArrayBuffer
directly (#121) - Add
impl<T> TryIntoJs for Option<T> where T: TryIntoJs
(#122)
- Fix
arm64
builds (#120)
- Fixed multiple mutable borrow isse (#[115])
- Made nj-cli exit non-zero when cargo build fails (#[105])
- Support for converting to/from Rust BigInt to/from JavaScript BigInt (#97).
- Support for converting Rust
u64
to BigInt in JavaScript. (#97) - Updated to N-API v7 in
js-sys
(#97)
- Fixed race condition for promise (#102)
- Support for Passing Buffer to Rust
- Support for Env cleanup
- Support for Typed Array Buffer (#24)
- Support for Array (#26)
- Fixed conversion of
()
(#31)
- Refactor procedure macro (#21)
- Support optional argument
- Proper support for boolean (#19)