Skip to content

Latest commit

 

History

History
524 lines (242 loc) · 25.3 KB

CHANGELOG.md

File metadata and controls

524 lines (242 loc) · 25.3 KB

1.1.0 (2024-11-17)

Features

  • add FFITypeTag::StackStruct (72931b0)
  • use FFITypeTag::StackArray replace dynamicArray parameter (b7c5874)

1.0.99 (2024-11-17)

Features

  • support restore stack struct (2cd1def)

1.0.98 (2024-10-29)

Features

1.0.96 (2024-09-22)

Bug Fixes

  • add default value for paramsValue when call define method close #77 (946b889)

1.0.95 (2024-09-17)

Features

  • static link msvc in windows (ffd2e4f)

1.0.94 (2024-09-13)

Features

  • add linux-arm-gnueabihf (8cf9cfe)

1.0.93 (2024-09-11)

Features

  • add linux-arm-gnueabihf (ef61ea4)

1.0.92 (2024-09-11)

Bug Fixes

  • disappear runInNewThread when return type is void (2e799e9)

Features

  • add linux-arm-gnueabihf (9ae05b5)
  • performance optimization by reduce cloning (45c4986)
  • update zh readme.md (13c7635)

1.0.90 (2024-08-12)

Features

  • add license close #66 (137c306)
  • update get_symbol about use Result as return type (a24ebba)

1.0.89 (2024-08-03)

Features

1.0.88 (2024-07-27)

Bug Fixes

  • judge func_ret_type is void condition (6b96974)

Features

  • visit jsValue in main thread prevent thread error (9eb78b1)

1.0.88-alpha.0 (2024-07-24)

Features

  • update string judge compatible with bun (6103692)
  • use call_with_return_value when retType is not void-n (2448c5d)

1.0.87 (2024-07-23)

Features

  • update FFICALLPARAMS implemention (a09c44d)

1.0.86 (2024-07-14)

Bug Fixes

  • call_with_return_value error tips (43b0125)

1.0.85 (2024-07-14)

Features

  • add tips for jsobject/array when used in new thread (41da725)

1.0.84 (2024-07-14)

Features

  • support pass jsFunction return value to c (#60) (44c19be)

1.0.83 (2024-06-20)

Bug Fixes

  • return bigInt when use struct field (0be42a7)

Features

1.0.82 (2024-06-15)

Bug Fixes

  • No need to free jsBuffer memory in rust call params (2e39791)

1.0.81 (2024-06-14)

Features

  • support DataType.BigInt (cf05fab)

1.0.80 (2024-06-13)

Features

  • set freeResultMemory as false at default (ddcf108)

1.0.79 (2024-06-11)

Features

  • support wideString (a9828b2)
  • use ref as params type avoid clone (b9d37fb)
  • use trait to implement feature insteadof separate function (f2679b9)

1.0.78 (2024-05-29)

Features

1.0.77 (2024-05-21)

1.0.77-alpha.1 (2024-05-20)

Features

  • add freeCFuncParamsMemory in funcConstructor (c5f298e)

1.0.77-alpha.0 (2024-05-20)

Bug Fixes

  • add freePointer, free memory after ffi-call prevent memory leak (#40) (f639628)

1.0.76 (2024-05-16)

Features

  • add issue template (e4aef11)
  • update OpeningLibraryError tips (0aa86b4)

1.0.75 (2024-05-10)

Features

  • add aarch64-pc-windows-msvc artifact (23b3118)
  • update publish script support alpha (45ca8e3)

1.0.74 (2024-05-07)

Features

  • check whether params_type length and params_value length is equal (dd9260c)

1.0.73 (2024-05-07)

Features

  • modifying all string handling functions to uniform UTF-16 handling (19573b4)

1.0.73-0 (2024-05-07)

Bug Fixes

  • convert jsString to UTF-16 string, create cstring from bytes manually (5fad2d0)

1.0.72 (2024-05-06)

Bug Fixes

  • convert JsString to UTF-16 string (70ea15c)
  • convert JsString to UTF-8 string (c613f66)

Features

  • dynamicArray support more array type (170e9fb)
  • suppprt freePointer (dbd50bb)

1.0.69 (2024-04-30)

Bug Fixes

  • ci add darwin-x64 target (55906a7)

Features

  • add arrayConstructor judge (bebcc94)
  • add changelog (403333c)
  • implement runInNewThread (#31) (f908400)
  • judge library path exist or not before call open (a97c26f)
  • mock jsExternal type (479daab)
  • refactor get_js_external_wrap_data (9f6878c)
  • use unchecked napi transform improve performance (8100d8a)

1.0.64 (2024-04-19)

Features

1.0.63 (2024-04-18)

Features

  • add define methods to define function signature (5945682)
  • refactor type hint (dcda3a8)
  • support floatArray as paramsType (a7fef73)

1.0.61 (2024-04-14)

Features

  • add ResultWithErrno type support (c21c375)

1.0.60 (2024-04-14)

Features

  • support output errno info (ae265fb)
  • update error tips when open uncompatible share library (a947241)

1.0.59 (2024-04-13)

Features

  • support static array in c struct field (890a310)

1.0.58 (2024-04-09)

Features

  • implement create clousre by libffi::middle support more types (#25) (608237f)

1.0.57 (2024-04-08)

Bug Fixes

Features

  • rename unpackPointer to unwrapPointer (8259780)

1.0.55 (2024-04-07)

Features

  • support wrapPointer and unpackPointer (4406477)

1.0.54 (2024-04-06)

Bug Fixes

  • createPointer for struct (cf6c237)
  • update createPointer logic (9b61dc6)

Features

  • cache function symbol in global variables (b08f157)

1.0.53 (2024-04-05)

Bug Fixes

  • add libnative only in linux/darwin (89ac7e4)

Features

  • support linux-x64-musl (02a1b43)
  • support Load Main Program handle (8e821b8)

1.0.52 (2024-04-04)

Bug Fixes

  • avoid xlocale/_stdio.h outside (macOS only) (4caaaa6)
  • calculate struct pointer offset padding (9ee7c10)
  • ci (69214d0)
  • dependencies (ef4de0d)
  • object pointer offset position (df1d0c3)
  • return buffer (026141c)
  • struct offset position (74d7587)
  • use cstr create string for protect ownership (562bfc6)
  • use cstr return string (33e0d4c)
  • use explicit path to load libsum.so (21e2b23)
  • use koffi correctly for accurate benchmark (e0ecfc5)
  • win32 (19fa8bc)

Features

  • add basictype and reftype (79aa944)
  • add benchmark (e6a0b5e)
  • add benchmark (5c9b1cc)
  • add call c++ class example (be1d8ac)
  • add DataType.void (1d0ff24)
  • add ffi-rs (79e9594)
  • add ffi-rs (39596d5)
  • add FunctionNotFound err type (fb430b9)
  • add get_data_type_size_align (10487ed)
  • add get_js_unknown_from_pointer (8a08f39)
  • add github Dependabot (#16) (eb41e0d)
  • add scope (c368e43)
  • add ToJsArray trait (2e1cebc)
  • add ToRsArray trait (c7423ce)
  • call tsfn in c other thread (7c8b0dc)
  • demo add createPerson (9456d6a)
  • eradicate panic (d1b29c2)
  • function parameter support object (64bf19e)
  • improve threadsafefunction (9ea02e0)
  • init (73856dd)
  • optimize ffi_call return value (80b6985)
  • rename createExternal to createPointer (2524c7d)
  • support boolean type (f4f7ee9)
  • support byteArray aka u8Array (341b37c)
  • support char type aka u8 (5c98b30)
  • support createExternal (8b7a2cb)
  • support double type (c975817)
  • support doubleArray (9cdb45e)
  • support function as params skip ci (b75df3d)
  • support generate nested object (bfd0ba3)
  • support i32array (8078d1b)
  • support install x86 artifact on x64 (2b12695)
  • support long type aka i64 (6147657)
  • support object type (79e90a8)
  • support open and close dynamic library (d933720)
  • support pass js function to ffi-rs (20741ec)
  • support pointer type aka jsexternal (e091fff)
  • support replace in place (921fbab)
  • support restoreExternal (b2dd20d)
  • support string array (2388993)
  • support struct double type field (27e40ee)
  • support struct field type doubleArray (75af21e)
  • support struct field type i32Array (a2c1274)
  • support struct with field type stringArr doubleArr (1c450fb)
  • support u64 fix i64 (9d10531)
  • support win32 (7aa7630)
  • support x86_64-unknown-linux-musl (1db4e0b)
  • thread function (#12) (a17910a)
  • thread safe function in multiple thread (94d4af5)
  • update calculate (68776da)
  • update d.ts tips (85c9b03)
  • update get_value_pointer method by ? operator (088e02f)
  • update optionalDependencies (30dcfd0)
  • update rs_array_to_js_array method by ? operator (ef4ba5f)
  • update type_define_to_rs_args method by ? operator (fe77239)
  • update types (bd12e4c)
  • use ? operator replace unwrap in get_params_value_rs_struct method (25390e8)
  • use ? replace unwrap refactor get_arg_types_values method (2314106)
  • use closure replace closureonce for multicall (85f255c)
  • use cstring replace cstr restore c string from pointer (704d878)
  • use dataType replace paramsType (bb59141)
  • use jsnumber as return type (4108536)
  • use result style as return type (9374f78)
  • use safe u8Array when call threadsafefunction (efb4c06)