Rhai v1.4.1 Release Notes

  • ๐Ÿ›  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.