Skip to content

Version 1.24.0

Latest

Choose a tag to compare

@schungx schungx released this 19 Jan 09:17
783ec1b

This new release has a breaking change because of the upgrade to the getrandom crate to version 0.3.

As a result, stdweb support has been dropped. It is anticipated that this change would not have significant impact on normal usage.

Breaking Changes

  • stdweb support is removed. The feature flag stdweb is also removed. Use wasm-bindgen instead.
  • web-time is used for WASM targets instead of instant, which is no longer maintained #1063.

Bug fixes

  • (Fuzzing) Fixed panic when using sort on an array with a comparer function that does not implement a total order #1058.

Enhancements

  • The optimizer now optimizes constant object map property accesses (thanks @phsym #1050).
  • Optimization is added to turn if cond1 { if cond2 { ... } } into if cond1 && cond2 { ... }.
  • The method sort for arrays is also aliased to sort_by.
  • The methods sort_desc, order, order_by and order_desc are added to arrays.
  • An exception is now thrown when attempting to use sort on an array containing unsupported element types.

New features

  • AST::new_from_module is added to create an AST from a shared Module.