Skip to content

v0.24.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Jan 16:25
· 473 commits to main since this release
  • Buffer API support (#13)
    • napi_create_buffer
    • napi_create_external_buffer
    • napi_create_buffer_copy
    • napi_is_buffer
    • napi_get_buffer_info
  • emnapi_create_memory_view (#20)
  • Fix string decoding (#19)
  • Fix init order (#18)
  • Change emnapi_sync_memory signature
    napi_status emnapi_sync_memory(napi_env env,
                                   bool js_to_wasm,
                                   napi_value* arraybuffer_or_view,
                                   size_t byte_offset,
                                   size_t length);
    declare function emnapiSyncMemory<T extends ArrayBuffer | ArrayBufferView> (
      jsToWasm: boolean,
      arrayBufferOrView: T,
      byteOffset?: number,
      length?: number,
    ): T

Great thanks to @RReverser