Skip to content

v1.4.1

Compare
Choose a tag to compare
@schungx schungx released this 23 Jan 13:51
05f8ce1

This is primarily a bug-fix version which fixes a large number of bugs.

Bug fixes

  • Expressions such as x = x + 1 no longer panics.
  • Padding arrays with another array via pad no longer loops indefinitely.
  • chop for arrays and BLOB's now works properly.
  • set_bit for bit-flags with negative index now works correctly.
  • Misnamed params field name in the JSON output of Engine::gen_fn_metadata_to_json is fixed (was incorrectly named type).
  • Fixes a potential unsafe violation in for loop.
  • Missing to_hex, to_octal and to_binary for i128 and u128 are added.
  • remove for arrays and BLOB's now treat negative index correctly.
  • parse_int now works properly for negative numbers.
  • Engine::gen_fn_signatures now generates signatures for external packages registered via Engine::register_global_module.
  • \r\n pairs are now recognized correctly for doc-comments.

Enhancements

  • Formatting of return types in functions metadata info is improved.
  • Use SmartString for Scope variable names and remove unsafe lifetime casting.
  • Functions in the standard library now have doc-comments (which can be obtained via Engine::gen_fn_metadata_to_json).
  • get and set methods are added to arrays, BLOB's, object maps and strings.